diff options
author | Jeff King <peff@peff.net> | 2015-06-25 12:54:31 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-29 11:39:04 -0700 |
commit | b7c1e11dc43e3dbd9eb2da20476c4c55dda5e84b (patch) | |
tree | a9b343e36f68f91f8b7ebf1a3dca8282180c6a3b /builtin/show-branch.c | |
parent | 912bd497e93f0235a5999a77f8d54f5ff80a3a03 (diff) | |
download | git-b7c1e11dc43e3dbd9eb2da20476c4c55dda5e84b.tar.gz |
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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-branch.c')
-rw-r--r-- | builtin/show-branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |