about summary refs log tree commit diff stats
path: root/ui-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-log.c')
-rw-r--r--ui-log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui-log.c b/ui-log.c index 20774bf..b443ca7 100644 --- a/ui-log.c +++ b/ui-log.c
@@ -75,11 +75,13 @@ void show_commit_decorations(struct commit *commit)
75 * don't display anything. */ 75 * don't display anything. */
76 break; 76 break;
77 case DECORATION_REF_LOCAL: 77 case DECORATION_REF_LOCAL:
78 html(" ");
78 cgit_log_link(buf, NULL, "branch-deco", buf, NULL, 79 cgit_log_link(buf, NULL, "branch-deco", buf, NULL,
79 ctx.qry.vpath, 0, NULL, NULL, 80 ctx.qry.vpath, 0, NULL, NULL,
80 ctx.qry.showmsg, 0); 81 ctx.qry.showmsg, 0);
81 break; 82 break;
82 case DECORATION_REF_TAG: 83 case DECORATION_REF_TAG:
84 html(" ");
83 if (!read_ref(deco->name, &oid_tag) && !peel_iterated_oid(&oid_tag, &peeled)) 85 if (!read_ref(deco->name, &oid_tag) && !peel_iterated_oid(&oid_tag, &peeled))
84 is_annotated = !oideq(&oid_tag, &peeled); 86 is_annotated = !oideq(&oid_tag, &peeled);
85 cgit_tag_link(buf, NULL, is_annotated ? "tag-annotated-deco" : "tag-deco", buf); 87 cgit_tag_link(buf, NULL, is_annotated ? "tag-annotated-deco" : "tag-deco", buf);
@@ -87,12 +89,14 @@ void show_commit_decorations(struct commit *commit)
87 case DECORATION_REF_REMOTE: 89 case DECORATION_REF_REMOTE:
88 if (!ctx.repo->enable_remote_branches) 90 if (!ctx.repo->enable_remote_branches)
89 break; 91 break;
92 html(" ");
90 cgit_log_link(buf, NULL, "remote-deco", NULL, 93 cgit_log_link(buf, NULL, "remote-deco", NULL,
91 oid_to_hex(&commit->object.oid), 94 oid_to_hex(&commit->object.oid),
92 ctx.qry.vpath, 0, NULL, NULL, 95 ctx.qry.vpath, 0, NULL, NULL,
93 ctx.qry.showmsg, 0); 96 ctx.qry.showmsg, 0);
94 break; 97 break;
95 default: 98 default:
99 html(" ");
96 cgit_commit_link(buf, NULL, "deco", ctx.qry.head, 100 cgit_commit_link(buf, NULL, "deco", ctx.qry.head,
97 oid_to_hex(&commit->object.oid), 101 oid_to_hex(&commit->object.oid),
98 ctx.qry.vpath); 102 ctx.qry.vpath);