diff options
author | Johan Herland <johan@herland.net> | 2011-04-11 00:48:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-11 10:11:17 -0700 |
commit | 204f01a2f734fddab95b09123b04b1305620e7b6 (patch) | |
tree | 2f2f3a4676b2ae2ed270f8d23f153cafb049e789 /Documentation | |
parent | 5fb41b883a5d0f9cbc4c6c693e6d84a8a5cee17e (diff) | |
download | git-204f01a2f734fddab95b09123b04b1305620e7b6.tar.gz git-204f01a2f734fddab95b09123b04b1305620e7b6.tar.xz |
--dirstat: Describe non-obvious differences relative to --stat or regular diff
Also add a testcase documenting the current behavior.
Improved-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johan Herland <johan@herland.net>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/diff-options.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index c93124be7..23772d615 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -72,6 +72,10 @@ endif::git-format-patch[] a cut-off percent (3% by default) are not shown. The cut-off percent can be set with `--dirstat=<limit>`. Changes in a child directory are not counted for the parent directory, unless `--cumulative` is used. ++ +Note that the `--dirstat` option computes the changes while ignoring +pure code movements within a file. In other words, rearranging lines +in a file is not counted as a change. --dirstat-by-file[=<limit>]:: Same as `--dirstat`, but counts changed files instead of lines. |