]> git.ipfire.org Git - thirdparty/git.git/commit - date.c
Replace the proposed 'auto' mode with 'auto:'
authorStephen P. Smith <ischis2@cox.net>
Mon, 21 Jan 2019 05:31:09 +0000 (22:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Jan 2019 22:16:17 +0000 (14:16 -0800)
commit2fd7c22992d37469db957e9a4d3884a6c0a4d182
treed5ba96f68a04be1e0c62d2f24bd0e4f72288b50f
parentacdd37769de8b0fe37a74bfc0475b63bdc55e9dc
Replace the proposed 'auto' mode with 'auto:'

In addition to adding the 'human' format, the patch added the auto
keyword which could be used in the config file as an alternate way to
specify the human format.  Removing 'auto' cleans up the 'human'
format interface.

Added the ability to specify mode 'foo' if the pager is being used by
using auto:foo syntax.  Therefore, 'auto:human' date mode defaults to
human if we're using the pager.  So you can do

git config --add log.date auto:human

and your "git log" commands will show the human-legible format unless
you're scripting things.

Signed-off-by: Stephen P. Smith <ischis2@cox.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c