diff options
author | SZEDER Gábor <szeder@ira.uka.de> | 2015-10-07 18:28:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-07 10:56:07 -0700 |
commit | b69e2e6344de05f9851201b4d52566670619908b (patch) | |
tree | 977592c109beb73f7d1d1a2700bf0bca5b538cce /pretty.c | |
parent | a5481a6c9438cbd9c246cfa59ff49c31a0926fb6 (diff) | |
download | git-sg/pretty-more-date-mode-format.tar.gz |
pretty: add format specifiers for short and raw date formatssg/pretty-more-date-mode-format
Other date formats already have their format specifiers and so should
these, so they will be available in pretty format aliases as well.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -723,6 +723,12 @@ static size_t format_person_part(struct strbuf *sb, char part, case 'I': /* date, ISO 8601 strict */ strbuf_addstr(sb, show_ident_date(&s, DATE_MODE(ISO8601_STRICT))); return placeholder_len; + case 's': /* date, short */ + strbuf_addstr(sb, show_ident_date(&s, DATE_MODE(SHORT))); + return placeholder_len; + case 'R': /* date, raw */ + strbuf_addstr(sb, show_ident_date(&s, DATE_MODE(RAW))); + return placeholder_len; } skip: |