diff options
author | Jeff King <peff@peff.net> | 2015-06-25 19:55:45 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-29 21:39:10 +0300 |
commit | aa1462cc3d3b0c4c8ad6a60aaf31e0f3a424162d (patch) | |
tree | 59ef52faaddb398ce95f3564ea5bd895c69e047f /builtin/blame.c | |
parent | a5481a6c9438cbd9c246cfa59ff49c31a0926fb6 (diff) |
introduce "format" date-mode
This feeds the format directly to strftime. Besides being a
little more flexible, the main advantage is that your system
strftime may know more about your locale's preferred format
(e.g., how to spell the days of the week).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/blame.c')
-rw-r--r-- | builtin/blame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 474da66ce4..7cc499dd34 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -2604,6 +2604,9 @@ parse_done: case DATE_NORMAL: blame_date_width = sizeof("Thu Oct 19 16:00:04 2006 -0700"); break; + case DATE_STRFTIME: + blame_date_width = strlen(show_date(0, 0, &blame_date_mode)) + 1; /* add the null */ + break; } blame_date_width -= 1; /* strip the null */ |