diff options
author | Johan Herland <johan@herland.net> | 2011-04-29 11:36:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-29 20:20:11 +0200 |
commit | 712d2c7dd893212756c21787fc12d6f71327e167 (patch) | |
tree | 187070b3d98f8e1ebc788cc91b15b3fd60fc923f /diff.h | |
parent | Add config variable for specifying default --dirstat behavior (diff) | |
download | git-712d2c7dd893212756c21787fc12d6f71327e167.tar.xz git-712d2c7dd893212756c21787fc12d6f71327e167.zip |
Allow specifying --dirstat cut-off percentage as a floating point number
Only the first digit after the decimal point is kept, as the dirstat
calculations all happen in permille.
Selftests verifying floating-point percentage input has been added.
Improved-by: Junio C Hamano <gitster@pobox.com>
Improved-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -114,7 +114,7 @@ struct diff_options { int needed_rename_limit; int degraded_cc_to_c; int show_rename_progress; - int dirstat_percent; + int dirstat_permille; int setup; int abbrev; const char *prefix; |