diff options
Diffstat (limited to 'ui-log.c')
| -rw-r--r-- | ui-log.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -53,6 +53,10 @@ void show_commit_decorations(struct commit *commit) | |||
| 53 | strncpy(buf, deco->name + 15, sizeof(buf) - 1); | 53 | strncpy(buf, deco->name + 15, sizeof(buf) - 1); |
| 54 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); | 54 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); |
| 55 | } | 55 | } |
| 56 | else if (!prefixcmp(deco->name, "refs/tags/")) { | ||
| 57 | strncpy(buf, deco->name + 10, sizeof(buf) - 1); | ||
| 58 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); | ||
| 59 | } | ||
| 56 | else if (!prefixcmp(deco->name, "refs/remotes/")) { | 60 | else if (!prefixcmp(deco->name, "refs/remotes/")) { |
| 57 | strncpy(buf, deco->name + 13, sizeof(buf) - 1); | 61 | strncpy(buf, deco->name + 13, sizeof(buf) - 1); |
| 58 | cgit_log_link(buf, NULL, "remote-deco", NULL, | 62 | cgit_log_link(buf, NULL, "remote-deco", NULL, |
| @@ -157,7 +161,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern | |||
| 157 | rev.verbose_header = 1; | 161 | rev.verbose_header = 1; |
| 158 | rev.show_root_diff = 0; | 162 | rev.show_root_diff = 0; |
| 159 | setup_revisions(argc, argv, &rev, NULL); | 163 | setup_revisions(argc, argv, &rev, NULL); |
| 160 | load_ref_decorations(); | 164 | load_ref_decorations(DECORATE_FULL_REFS); |
| 161 | rev.show_decorations = 1; | 165 | rev.show_decorations = 1; |
| 162 | rev.grep_filter.regflags |= REG_ICASE; | 166 | rev.grep_filter.regflags |= REG_ICASE; |
| 163 | compile_grep_patterns(&rev.grep_filter); | 167 | compile_grep_patterns(&rev.grep_filter); |
