From: Georgios Atheridis Date: Mon, 26 Dec 2022 07:03:39 +0000 (+0000) Subject: added return to home X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=593de4fff757a4b5a37e485a5718ed03f25cbdc8;p=forks%2Fstagit.git added return to home --- diff --git a/Makefile b/Makefile index a037df5..8353dfc 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ STAGIT_CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE # Uncomment to enable workaround for older libgit2 which don't support this # option. This workaround will be removed in the future *pinky promise*. -#STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1 +STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1 SRC = \ stagit.c\ diff --git a/stagit-index.c b/stagit-index.c index 6402296..30cbe87 100644 --- a/stagit-index.c +++ b/stagit-index.c @@ -104,10 +104,12 @@ writeheader(FILE *fp) fprintf(fp, "\n\n", relpath); fprintf(fp, "\n", relpath); fputs("\n\n", fp); - fprintf(fp, "\n\n" + fprintf(fp, "
\"\"
\n\n" "\n
\"\"", relpath); xmlencode(fp, description, strlen(description)); fputs("
\n" + "\n" + "Return to Home\n" "
\n
\n
\n" "\n" "" diff --git a/stagit.c b/stagit.c index 61c9a53..2446466 100644 --- a/stagit.c +++ b/stagit.c @@ -519,7 +519,7 @@ writeheader(FILE *fp, const char *title) xmlencode(fp, name, strlen(name)); fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath); fprintf(fp, "\n", relpath); - fputs("\n\n
NameDescriptionOwner
", fp); + fputs("\n\n
", fp); fprintf(fp, "\"\"", relpath, relpath); fputs("

", fp); @@ -547,6 +547,8 @@ writeheader(FILE *fp, const char *title) if (license) fprintf(fp, " | LICENSE", relpath, license); + fputs("

\n", fp); + fprintf(fp, "Return to Home", relpath); fputs("
\n
\n
\n", fp); }