summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2011-04-29 11:36:20 +0200
committerJunio C Hamano <gitster@pobox.com>2011-04-29 11:20:11 -0700
commit712d2c7dd893212756c21787fc12d6f71327e167 (patch)
tree187070b3d98f8e1ebc788cc91b15b3fd60fc923f /diff.h
parent2d17495196d0dceb0ff492aa97bfff33ef1baa18 (diff)
downloadgit-712d2c7dd893212756c21787fc12d6f71327e167.tar.gz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.h b/diff.h
index 6fe1597785..90f491e9e7 100644
--- a/diff.h
+++ b/diff.h
@@ -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;