diff options
author | John Keeping | 2014-10-05 10:59:02 +0100 |
---|---|---|
committer | Lukas Fleischer | 2014-12-13 12:38:42 +0100 |
commit | eeddb5bc0905d4728001a111a9b1eb60ecccf9bd (patch) | |
tree | e1193c55a604584acc8e3198838b358d44a65133 /ui-log.c | |
parent | 49f607777fe3d9393574a572d72caa568ee3ca3c (diff) | |
download | cgit-eeddb5bc0905d4728001a111a9b1eb60ecccf9bd.tar.gz cgit-eeddb5bc0905d4728001a111a9b1eb60ecccf9bd.tar.bz2 cgit-eeddb5bc0905d4728001a111a9b1eb60ecccf9bd.zip |
ui-shared: remove toggle_ssdiff arg to cgit_commit_link()
This argument is never used with a value other than zero, so remove it
and simplify the code.
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-log.c')
-rw-r--r-- | ui-log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -90,7 +90,7 @@ void show_commit_decorations(struct commit *commit) | |||
90 | strncpy(buf, deco->name, sizeof(buf) - 1); | 90 | strncpy(buf, deco->name, sizeof(buf) - 1); |
91 | cgit_commit_link(buf, NULL, "deco", ctx.qry.head, | 91 | cgit_commit_link(buf, NULL, "deco", ctx.qry.head, |
92 | sha1_to_hex(commit->object.sha1), | 92 | sha1_to_hex(commit->object.sha1), |
93 | ctx.qry.vpath, 0); | 93 | ctx.qry.vpath); |
94 | } | 94 | } |
95 | next: | 95 | next: |
96 | deco = deco->next; | 96 | deco = deco->next; |
@@ -165,7 +165,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) | |||
165 | } | 165 | } |
166 | } | 166 | } |
167 | cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, | 167 | cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, |
168 | sha1_to_hex(commit->object.sha1), ctx.qry.vpath, 0); | 168 | sha1_to_hex(commit->object.sha1), ctx.qry.vpath); |
169 | show_commit_decorations(commit); | 169 | show_commit_decorations(commit); |
170 | html("</td><td>"); | 170 | html("</td><td>"); |
171 | cgit_open_filter(ctx.repo->email_filter, info->author_email, "log"); | 171 | cgit_open_filter(ctx.repo->email_filter, info->author_email, "log"); |