From: Jeff King Date: Thu, 25 Jun 2015 16:54:31 +0000 (-0400) Subject: show-branch: use DATE_RELATIVE instead of magic number X-Git-Tag: v2.6.0-rc0~90^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b7c1e11dc43e3dbd9eb2da20476c4c55dda5e84b 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/show-branch.c b/builtin/show-branch.c index 323f857463..d78461389a 100644 --- a/builtin/show-branch.c +++ b/builtin/show-branch.c @@ -784,7 +784,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix) else msg++; reflog_msg[i] = xstrfmt("(%s) %s", - show_date(timestamp, tz, 1), + show_date(timestamp, tz, DATE_RELATIVE), msg); free(logmsg); sprintf(nth_desc, "%s@{%d}", *av, base+i);