aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.h
diff options
context:
space:
mode:
authorJohn Keeping2015-01-15 22:18:14 +0000
committerJason A. Donenfeld2015-01-19 17:52:10 +0100
commitc422b9b3d5938a4d386533604d4c0dbedfcb2b6d (patch)
treedf512e44809bf0e34ca80a8d57a6fc74482007d9 /ui-shared.h
parented7e3bc822856c30066a4ff0178033b22046fe96 (diff)
downloadcgit-c422b9b3d5938a4d386533604d4c0dbedfcb2b6d.tar.gz
cgit-c422b9b3d5938a4d386533604d4c0dbedfcb2b6d.tar.bz2
cgit-c422b9b3d5938a4d386533604d4c0dbedfcb2b6d.zip
tag: reference with "h" instead of "id"
When clicking on "log" from a tag we end up showing the log of whatever branch we used to reach the tag. If the tag doesn't point onto a branch then the tagged commit won't appear in this output. By linking to tags with the head parameter instead of the "id" parameter the log link will show the log of the tag. This is clearly desirable when the tag has been reached from the refs UI and changing the behaviour for tag decorations makes them match branch decorations where log -> decoration -> log shows the log of the decoration. Reported-by: Ferry Huberts <mailings@hupie.com> Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-shared.h')
-rw-r--r--ui-shared.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui-shared.h b/ui-shared.h
index f8cf220..021fe4e 100644
--- a/ui-shared.h
+++ b/ui-shared.h
@@ -18,8 +18,7 @@ extern void cgit_index_link(const char *name, const char *title,
18extern void cgit_summary_link(const char *name, const char *title, 18extern void cgit_summary_link(const char *name, const char *title,
19 const char *class, const char *head); 19 const char *class, const char *head);
20extern void cgit_tag_link(const char *name, const char *title, 20extern void cgit_tag_link(const char *name, const char *title,
21 const char *class, const char *head, 21 const char *class, const char *tag);
22 const char *rev);
23extern void cgit_tree_link(const char *name, const char *title, 22extern void cgit_tree_link(const char *name, const char *title,
24 const char *class, const char *head, 23 const char *class, const char *head,
25 const char *rev, const char *path); 24 const char *rev, const char *path);