aboutsummaryrefslogtreecommitdiffstats
path: root/ui-commit.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2014-10-05 10:59:03 +0100
committerLukas Fleischer <cgit@cryptocrack.de>2014-12-13 12:38:42 +0100
commit03f537f1a134c8578ae4c16055596539fbbcc220 (patch)
tree4c16fece25d645a7e52565d82833528d3c22d240 /ui-commit.c
parentui-shared: remove toggle_ssdiff arg to cgit_commit_link() (diff)
downloadcgit-03f537f1a134c8578ae4c16055596539fbbcc220.tar.xz
cgit-03f537f1a134c8578ae4c16055596539fbbcc220.zip
ui-shared: remove toggle_ssdiff arg to cgit_diff_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 '')
-rw-r--r--ui-commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-commit.c b/ui-commit.c
index ec99264..d5a888d 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -99,7 +99,7 @@ void cgit_print_commit(char *hex, const char *prefix)
cgit_commit_link(tmp2, NULL, NULL, ctx.qry.head, tmp, prefix);
html(" (");
cgit_diff_link("diff", NULL, NULL, ctx.qry.head, hex,
- sha1_to_hex(p->item->object.sha1), prefix, 0);
+ sha1_to_hex(p->item->object.sha1), prefix);
html(")</td></tr>");
parents++;
}