summaryrefslogtreecommitdiff
path: root/Documentation/diff-options.txt
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2011-04-10 22:48:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-04-11 17:11:17 (GMT)
commit204f01a2f734fddab95b09123b04b1305620e7b6 (patch)
tree2f2f3a4676b2ae2ed270f8d23f153cafb049e789 /Documentation/diff-options.txt
parent5fb41b883a5d0f9cbc4c6c693e6d84a8a5cee17e (diff)
downloadgit-204f01a2f734fddab95b09123b04b1305620e7b6.zip
git-204f01a2f734fddab95b09123b04b1305620e7b6.tar.gz
git-204f01a2f734fddab95b09123b04b1305620e7b6.tar.bz2
--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/diff-options.txt')
-rw-r--r--Documentation/diff-options.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index c93124b..23772d6 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.