Add config variable for specifying default --dirstat behavior
commit2d17495196d0dceb0ff492aa97bfff33ef1baa18
authorJohan Herland <johan@herland.net>
Fri, 29 Apr 2011 09:36:19 +0000 (29 11:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Apr 2011 18:20:03 +0000 (29 11:20 -0700)
tree010da01ffd0d5101ba2d3689553f07165302e3a7
parent333f3fb0c5307fed170cae336ab3c056f4d6ca1c
Add config variable for specifying default --dirstat behavior

The new diff.dirstat config variable takes the same arguments as
'--dirstat=<args>', and specifies the default arguments for --dirstat.
The config is obviously overridden by --dirstat arguments passed on the
command line.

When not specified, the --dirstat defaults are 'changes,noncumulative,3'.

The patch also adds several tests verifying the interaction between the
diff.dirstat config variable, and the --dirstat command line option.

Improved-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-config.txt
Documentation/diff-options.txt
diff.c
t/t4047-diff-dirstat.sh