Thread (19 messages) 19 messages, 4 authors, 2016-06-15

[PATCH 1/3] show-branch: use DATE_RELATIVE instead of magic number

flat view
STALE3766d

From: Jeff King <hidden>
Date: 2016-06-15 23:05:31
Subsystem: the rest · Maintainer: Linus Torvalds

This is more readable, and won't break if we ever change the
order of the date_mode enum.

Signed-off-by: Jeff King <redacted>
---
 builtin/show-branch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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);
-- 
2.4.4.742.g862750c
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help