-
Notifications
You must be signed in to change notification settings - Fork 145
diff: teach --stat to ignore uninteresting modifications #689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/preview |
Preview email sent as pull.689.git.1596323970075.gitgitgadget@gmail.com |
/preview |
Preview email sent as pull.689.git.1596324728937.gitgitgadget@gmail.com |
/submit |
Submitted as pull.689.git.1596324796918.gitgitgadget@gmail.com |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
On the Git mailing list, Matt Rogers wrote (reply to this):
|
65153a5
to
6c5db18
Compare
/submit |
Submitted as pull.689.v2.git.1597445151824.gitgitgadget@gmail.com |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This branch is now known as |
This patch series was integrated into seen via git@9ad5e56. |
On the Git mailing list, Matt Rogers wrote (reply to this):
|
On the Git mailing list, Matt Rogers wrote (reply to this):
|
This patch series was integrated into seen via git@6629d1c. |
This patch series was integrated into seen via git@719a4df. |
This patch series was integrated into seen via git@009659f. |
This patch series was integrated into seen via git@a5222e6. |
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>
This patch series was integrated into seen via git@bc8b4d7. |
/submit |
Submitted as pull.689.v3.git.1597884092580.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This patch series was integrated into seen via git@88f1d9a. |
This patch series was integrated into seen via git@ad21b93. |
This patch series was integrated into seen via git@bfcd43b. |
This patch series was integrated into seen via git@f1d7e2a. |
This patch series was integrated into seen via git@3eb1aed. |
This patch series was integrated into seen via git@029b82f. |
This patch series was integrated into seen via git@83ad61a. |
This patch series was integrated into seen via git@f112707. |
This patch series was integrated into seen via git@f9d8048. |
This patch series was integrated into seen via git@d407f08. |
This patch series was integrated into seen via git@c493a24. |
This patch series was integrated into seen via git@a04ada6. |
This patch series was integrated into next via git@b9e9725. |
This patch series was integrated into seen via git@e795371. |
This patch series was integrated into seen via git@302a020. |
This patch series was integrated into seen via git@723602c. |
This patch series was integrated into seen via git@b58e47a. |
This patch series was integrated into next via git@b58e47a. |
This patch series was integrated into master via git@b58e47a. |
Closed via b58e47a. |
This patch is based on the discussion these email threads:
https://lore.kernel.org/git/1484704915.2096.16.camel@mattmccutchen.net/
https://lore.kernel.org/git/CAOjrSZtQPQ8Xxuz+7SGykR8Q-gFDEZANSE5yQASqKjpbUAq_5Q@mail.gmail.com/
With the code mostly taken from this specific message:
https://lore.kernel.org/git/20170118111705.6bqzkklluikda3r5@sigill.intra.peff.net/
The summary is that when running
git diff --stat
in combination with --ignore-all-space or similar options, you'll see many lines of the form:some-file.txt | 0
which can be misleading when you are explicitly telling git to "ignore all space" or something similar. To rectify this issue, this patch categorizes all files that are modified but have no effective changes as not fit to display to the user.
New in V2:
CC: peff@peff.net