|
diff --git a/ui-log.c b/ui-log.c index ba2ab03..f3132c9 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -48,16 +48,20 @@ void show_commit_decorations(struct commit *commit) |
48 | strncpy(buf, deco->name + 11, sizeof(buf) - 1); |
48 | strncpy(buf, deco->name + 11, sizeof(buf) - 1); |
49 | cgit_log_link(buf, NULL, "branch-deco", buf, NULL, NULL, |
49 | cgit_log_link(buf, NULL, "branch-deco", buf, NULL, NULL, |
50 | 0, NULL, NULL, ctx.qry.showmsg); |
50 | 0, NULL, NULL, ctx.qry.showmsg); |
51 | } |
51 | } |
52 | else if (!prefixcmp(deco->name, "tag: refs/tags/")) { |
52 | else if (!prefixcmp(deco->name, "tag: refs/tags/")) { |
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, |
59 | sha1_to_hex(commit->object.sha1), NULL, |
63 | sha1_to_hex(commit->object.sha1), NULL, |
60 | 0, NULL, NULL, ctx.qry.showmsg); |
64 | 0, NULL, NULL, ctx.qry.showmsg); |
61 | } |
65 | } |
62 | else { |
66 | else { |
63 | strncpy(buf, deco->name, sizeof(buf) - 1); |
67 | strncpy(buf, deco->name, sizeof(buf) - 1); |
@@ -152,17 +156,17 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern |
152 | argv[argc++] = path; |
156 | argv[argc++] = path; |
153 | } |
157 | } |
154 | init_revisions(&rev, NULL); |
158 | init_revisions(&rev, NULL); |
155 | rev.abbrev = DEFAULT_ABBREV; |
159 | rev.abbrev = DEFAULT_ABBREV; |
156 | rev.commit_format = CMIT_FMT_DEFAULT; |
160 | rev.commit_format = CMIT_FMT_DEFAULT; |
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); |
164 | prepare_revision_walk(&rev); |
168 | prepare_revision_walk(&rev); |
165 | |
169 | |
166 | if (pager) |
170 | if (pager) |
167 | html("<table class='list nowrap'>"); |
171 | html("<table class='list nowrap'>"); |
168 | |
172 | |
|