]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6006-rev-list-format.sh
pretty=format: respect date format options
authorJeff King <peff@peff.net>
Fri, 29 Aug 2008 00:54:59 +0000 (20:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2008 07:14:29 +0000 (00:14 -0700)
commitd36f8679e94c2a0d4d15d6adcea434634af6d627
tree2627d520068c741d8235151da56ae66ad261ed01
parent0cfeed2e1d320cc76c434e0bfc26d90065754e46
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>
Documentation/pretty-formats.txt
archive.c
builtin-commit.c
commit.h
pretty.c
t/t6006-rev-list-format.sh