about summary refs log tree commit diff
path: root/ui-log.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-01-19 19:33:01 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-08 14:19:33 +0100
commit57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6 (patch)
treec84c92e2a148de649cfb31d93384dbd28f1e2cee /ui-log.c
parentui-tree: put reverse path in title (diff)
downloadcgit-pink-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.tar.gz
cgit-pink-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.zip
ui-shared: remove "format" from cgit_print_age()
We never use any format other than FMT_SHORTDATE, so move that into the
function.

Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to '')
-rw-r--r--ui-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-log.c b/ui-log.c
index a4dc707..5f6a69c 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -204,7 +204,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
 	}
 	else {
 		html("<td>");
-		cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE);
+		cgit_print_age(commit->date, TM_WEEK * 2);
 		html("</td>");
 	}
 
@@ -244,7 +244,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
 
 	if (revs->graph) {
 		html("</td><td>");
-		cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE);
+		cgit_print_age(commit->date, TM_WEEK * 2);
 	}
 
 	if (!lines_counted && (ctx.repo->enable_log_filecount ||