Skip to content

Commit b7c1e11

Browse files
peffgitster
authored andcommitted
show-branch: use DATE_RELATIVE instead of magic number
This is more readable, and won't break if we ever change the order of the date_mode enum. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 912bd49 commit b7c1e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/show-branch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
784784
else
785785
msg++;
786786
reflog_msg[i] = xstrfmt("(%s) %s",
787-
show_date(timestamp, tz, 1),
787+
show_date(timestamp, tz, DATE_RELATIVE),
788788
msg);
789789
free(logmsg);
790790
sprintf(nth_desc, "%s@{%d}", *av, base+i);

0 commit comments

Comments
 (0)