mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 01:25:34 +02:00
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>
This commit is contained in:
parent
ed7e3bc822
commit
c422b9b3d5
4 changed files with 8 additions and 9 deletions
|
@ -18,8 +18,7 @@ extern void cgit_index_link(const char *name, const char *title,
|
|||
extern void cgit_summary_link(const char *name, const char *title,
|
||||
const char *class, const char *head);
|
||||
extern void cgit_tag_link(const char *name, const char *title,
|
||||
const char *class, const char *head,
|
||||
const char *rev);
|
||||
const char *class, const char *tag);
|
||||
extern void cgit_tree_link(const char *name, const char *title,
|
||||
const char *class, const char *head,
|
||||
const char *rev, const char *path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue