aboutsummaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorHeikki Orsila <heikki.orsila@iki.fi>2008-09-05 22:27:35 +0300
committerJunio C Hamano <gitster@pobox.com>2008-09-05 14:04:26 -0700
commitfd33777b7871eefa440f89ccf7c432895af09c74 (patch)
tree4a09d41bc8c7515e027575a955ed6aaac9c52740 /diff.h
parent80d12c23de4fbddfaee2f9bf7fe809f57d02e171 (diff)
downloadgit-fd33777b7871eefa440f89ccf7c432895af09c74.tar.gz
git-fd33777b7871eefa440f89ccf7c432895af09c74.tar.xz
diff --dirstat-by-file: count changed files, not lines
This new option --dirstat-by-file is the same as --dirstat, but it counts "impacted files" instead of "impacted lines" (lines that are added or removed). Signed-off-by: Heikki Orsila <heikki.orsila@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index 7f53bebf3..c34688881 100644
--- a/diff.h
+++ b/diff.h
@@ -64,6 +64,7 @@ typedef void (*diff_format_fn_t)(struct diff_queue_struct *q,
#define DIFF_OPT_RELATIVE_NAME (1 << 17)
#define DIFF_OPT_IGNORE_SUBMODULES (1 << 18)
#define DIFF_OPT_DIRSTAT_CUMULATIVE (1 << 19)
+#define DIFF_OPT_DIRSTAT_BY_FILE (1 << 20)
#define DIFF_OPT_TST(opts, flag) ((opts)->flags & DIFF_OPT_##flag)
#define DIFF_OPT_SET(opts, flag) ((opts)->flags |= DIFF_OPT_##flag)
#define DIFF_OPT_CLR(opts, flag) ((opts)->flags &= ~DIFF_OPT_##flag)