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-refs.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-refs.c')
-rw-r--r-- | ui-refs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -73,7 +73,7 @@ static int print_branch(struct refinfo *ref) | |||
73 | html_txt(info->author); | 73 | html_txt(info->author); |
74 | cgit_close_filter(ctx.repo->email_filter); | 74 | cgit_close_filter(ctx.repo->email_filter); |
75 | html("</td><td colspan='2'>"); | 75 | html("</td><td colspan='2'>"); |
76 | cgit_print_age(info->commit->date, -1, NULL); | 76 | cgit_print_age(info->commit->date, -1); |
77 | } else { | 77 | } else { |
78 | html("</td><td></td><td>"); | 78 | html("</td><td></td><td>"); |
79 | cgit_object_link(ref->object); | 79 | cgit_object_link(ref->object); |
@@ -161,9 +161,9 @@ static int print_tag(struct refinfo *ref) | |||
161 | html("</td><td colspan='2'>"); | 161 | html("</td><td colspan='2'>"); |
162 | if (info) { | 162 | if (info) { |
163 | if (info->tagger_date > 0) | 163 | if (info->tagger_date > 0) |
164 | cgit_print_age(info->tagger_date, -1, NULL); | 164 | cgit_print_age(info->tagger_date, -1); |
165 | } else if (ref->object->type == OBJ_COMMIT) { | 165 | } else if (ref->object->type == OBJ_COMMIT) { |
166 | cgit_print_age(ref->commit->commit->date, -1, NULL); | 166 | cgit_print_age(ref->commit->commit->date, -1); |
167 | } | 167 | } |
168 | html("</td></tr>\n"); | 168 | html("</td></tr>\n"); |
169 | 169 | ||