Commit 1d28db1eeb9d3b9ab044ec570bdf50e69a553f71

Stefan Sperling 2020-02-03T13:29:13

make commit ID links in gotweb's blame page point to diffs rather than blobs

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gotweb/gotweb_ui.h b/gotweb/gotweb_ui.h
index de5ce6d..ed77095 100644
--- a/gotweb/gotweb_ui.h
+++ b/gotweb/gotweb_ui.h
@@ -227,7 +227,7 @@ char *blame_line =
 	"<div id='blame_wrapper'>" \
 	"<div id='blame_number'>%.*d</div>" \
 	"<div id='blame_hash'>" \
-	"<a href='?path=%s&action=blob&commit=%s&file=%s&folder=%s'>%.8s</a>" \
+	"<a href='?path=%s&action=diff&commit=%s&file=%s&folder=%s'>%.8s</a>" \
 	"</div>" \
 	"<div id='blame_date'>%s</div>" \
 	"<div id='blame_author'>%-8s</div>" \