summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-06-25 16:54:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-29 18:39:04 (GMT)
commitb7c1e11dc43e3dbd9eb2da20476c4c55dda5e84b (patch)
treea9b343e36f68f91f8b7ebf1a3dca8282180c6a3b /builtin
parent912bd497e93f0235a5999a77f8d54f5ff80a3a03 (diff)
downloadgit-b7c1e11dc43e3dbd9eb2da20476c4c55dda5e84b.zip
git-b7c1e11dc43e3dbd9eb2da20476c4c55dda5e84b.tar.gz
git-b7c1e11dc43e3dbd9eb2da20476c4c55dda5e84b.tar.bz2
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')
-rw-r--r--builtin/show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/show-branch.c b/builtin/show-branch.c
index 323f857..d784613 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);