diff options
author | Matthew Rogers <mattr94@gmail.com> | 2020-08-20 00:41:32 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-19 17:53:32 -0700 |
commit | 1cf3d5db9bd11514465d3692216211315f0dc82c (patch) | |
tree | 2d49af1a30b44cc2f9a1977c55582bd254ae4201 /perl | |
parent | Git 2.28 (diff) | |
download | tgif-1cf3d5db9bd11514465d3692216211315f0dc82c.tar.xz |
diff: teach --stat to ignore uninteresting modifications
When options such as --ignore-space-change are in use, files with
modifications can have no interesting textual changes worth showing. In
such cases, "git diff --stat" shows 0 lines of additions and deletions.
Teach "git diff --stat" not to show such a path in its output, which
would be more natural.
However, we don't want to prevent the display of all files that have 0
effective diffs since they could be the result of a rename, permission
change, or other similar operation that may still be of interest so we
special case additions and deletions as they are always interesting.
Signed-off-by: Matthew Rogers <mattr94@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
0 files changed, 0 insertions, 0 deletions