Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Jun 29, 2015
1 parent 912bd49 commit b7c1e11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/show-branch.c
Expand Up @@ -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);
Expand Down

0 comments on commit b7c1e11

Please sign in to comment.