summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Johan Herland <johan@herland.net>2011-04-11 00:48:50 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-04-11 10:11:17 -0700
commit204f01a2f734fddab95b09123b04b1305620e7b6 (patch)
tree2f2f3a4676b2ae2ed270f8d23f153cafb049e789 /Documentation
parentGit 1.7.4.4 (diff)
downloadtgif-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.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index c93124be79..23772d615d 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.