diff options
author | John Keeping | 2016-01-19 19:33:01 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2016-02-08 14:19:33 +0100 |
commit | 57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6 (patch) | |
tree | c84c92e2a148de649cfb31d93384dbd28f1e2cee /ui-log.c | |
parent | 23f7dadaaba2817c92c42c0a642a3186aa8ef24d (diff) | |
download | cgit-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.tar.gz cgit-57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6.tar.bz2 cgit-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 'ui-log.c')
-rw-r--r-- | ui-log.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -204,7 +204,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) | |||
204 | } | 204 | } |
205 | else { | 205 | else { |
206 | html("<td>"); | 206 | html("<td>"); |
207 | cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); | 207 | cgit_print_age(commit->date, TM_WEEK * 2); |
208 | html("</td>"); | 208 | html("</td>"); |
209 | } | 209 | } |
210 | 210 | ||
@@ -244,7 +244,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) | |||
244 | 244 | ||
245 | if (revs->graph) { | 245 | if (revs->graph) { |
246 | html("</td><td>"); | 246 | html("</td><td>"); |
247 | cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); | 247 | cgit_print_age(commit->date, TM_WEEK * 2); |
248 | } | 248 | } |
249 | 249 | ||
250 | if (!lines_counted && (ctx.repo->enable_log_filecount || | 250 | if (!lines_counted && (ctx.repo->enable_log_filecount || |