mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 15:09:42 +02:00
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>
This commit is contained in:
parent
23f7dadaab
commit
57ea1aa2a5
5 changed files with 9 additions and 9 deletions
4
ui-log.c
4
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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue