diff options
author | Jeff King <peff@peff.net> | 2008-08-29 02:54:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-29 09:14:29 +0200 |
commit | d36f8679e94c2a0d4d15d6adcea434634af6d627 (patch) | |
tree | 2627d520068c741d8235151da56ae66ad261ed01 /builtin-commit.c | |
parent | make git-shell paranoid about closed stdin/stdout/stderr (diff) | |
download | git-d36f8679e94c2a0d4d15d6adcea434634af6d627.tar.xz git-d36f8679e94c2a0d4d15d6adcea434634af6d627.zip |
pretty=format: respect date format options
When running a command like:
git log --pretty=format:%ad --date=short
the date option was ignored. This patch causes it to use whatever
format was specified by --date (or by --relative-date, etc), just
as the non-user formats would do.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r-- | builtin-commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c index 649c8beb3e..c870037b07 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -882,7 +882,7 @@ static void print_summary(const char *prefix, const unsigned char *sha1) if (!log_tree_commit(&rev, commit)) { struct strbuf buf = STRBUF_INIT; - format_commit_message(commit, "%h: %s", &buf); + format_commit_message(commit, "%h: %s", &buf, DATE_NORMAL); printf("%s\n", buf.buf); strbuf_release(&buf); } |