nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests

commit 6e8cab833d01d93198f5f4fb0296654997ea3a38
parent 9aa3f6d2e3e1f8cc8a8ad78408bc82c0ed2084f0
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Thu, 29 Aug 2024 15:52:30 +0200

feat(stagit): improve pico header

Diffstat:
Mdocker/docker-git/docker/header-patch.diff | 33+++++++++++++++++++++++++--------
1 file changed, 25 insertions(+), 8 deletions(-)

diff --git a/docker/docker-git/docker/header-patch.diff b/docker/docker-git/docker/header-patch.diff @@ -1,21 +1,24 @@ -From 12edc8c6c72e06b6e92be0947b6c6a68b3708b8a Mon Sep 17 00:00:00 2001 +From c7b208722e7e4b52731be3b86f2927a85817d113 Mon Sep 17 00:00:00 2001 From: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Thu, 29 Aug 2024 09:22:24 +0200 Subject: [PATCH] feat: add pr link --- - stagit-index.c | 2 ++ - 1 file changed, 2 insertions(+) + stagit-index.c | 4 +++- + stagit.c | 3 ++- + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/stagit-index.c b/stagit-index.c -index 6402296..4cf5cd3 100644 +index 6402296..d128b36 100644 --- a/stagit-index.c +++ b/stagit-index.c -@@ -13,6 +13,7 @@ static git_repository *repo; +@@ -12,7 +12,8 @@ static git_repository *repo; + static const char *relpath = ""; - static char description[255] = "Repositories"; -+static char prlink[255] = " | Pull-requests at https://pr.in0rdr.ch"; +-static char description[255] = "Repositories"; ++static char description[255] = "Repos"; ++static char prlink[255] = " | Pull requests at <a href=\"https://pr.in0rdr.ch\">pr.in0rdr.ch</a>"; static char *name = ""; static char owner[255]; @@ -23,10 +26,24 @@ index 6402296..4cf5cd3 100644 fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n" "<td><span class=\"desc\">", relpath); xmlencode(fp, description, strlen(description)); -+ xmlencode(fp, prlink, strlen(prlink)); ++ fputs(prlink, fp); fputs("</span></td></tr><tr><td></td><td>\n" "</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n" "<table id=\"index\"><thead>\n" +diff --git a/stagit.c b/stagit.c +index 03f0c09..5d492f6 100644 +--- a/stagit.c ++++ b/stagit.c +@@ -537,7 +537,8 @@ writeheader(FILE *fp, const char *title) + fputs("<tr><td></td><td>\n", fp); + fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath); + fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath); +- fprintf(fp, "<a href=\"%srefs.html\">Refs</a>", relpath); ++ fprintf(fp, "<a href=\"%srefs.html\">Refs</a> | ", relpath); ++ fprintf(fp, "<a href=\"https://pr.in0rdr.ch/repos/%s\">Pull requests</a>", strippedname); + if (submodules) + fprintf(fp, " | <a href=\"%sfile/%s.html\">Submodules</a>", + relpath, submodules); -- 2.44.1