stagit

static git page generator  https://git.ce9e.org
git clone https://git.ce9e.org/stagit.git

commit
ea38fedc774e70218c617cc6136a2017b3ad19fa
parent
fd9f7d75bbf05c9bc57cb5ad81f0f6ef58eaa9aa
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-08-07 19:02
use nofollow on links to historic files

Diffstat

M src/stagit.c.in 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/src/stagit.c.in b/src/stagit.c.in

@@ -443,8 +443,8 @@ write_commit_file(FILE *fp, struct deltainfo *di, size_t i)
  443   443 
  444   444 	T("<h2 id=\"h{i:%zu}\">\n");
  445   445 	T("diff --git\n");
  446    -1 	T("a/<a href=\"../blob/{delta->old_file.path}\">{delta->old_file.path}</a>\n");
  447    -1 	T("b/<a href=\"../blob/{delta->new_file.path}\">{delta->new_file.path}</a>\n");
   -1   446 	T("a/<a href=\"../blob/{delta->old_file.path}\" rel=\"nofollow\">{delta->old_file.path}</a>\n");
   -1   447 	T("b/<a href=\"../blob/{delta->new_file.path}\" rel=\"nofollow\">{delta->new_file.path}</a>\n");
  448   448 	T("</h2>\n");
  449   449 
  450   450 	if (delta->flags & GIT_DIFF_FLAG_BINARY) {