I have a repository where there are many files that only have EOL whitespace changes, but some have actual changes. I am trying to craft an alias to open diffs of only the files with real changes in vim tabs, and as part of that I am running a git diff --name-only ...
command to get a list of files that have changed so I can open them in tabs.
My problem is that --ignore-space-at-eol
, --ignore-space-change
, and --ignore-all-space
seem to do nothing when combined with --name-only
.
When I run the following command nothing is printed out (my_file
has a CR/LF change):
git diff --ignore-space-at-eol my_file
But when I run this I get my_file
printed out:
git diff --ignore-space-at-eol --name-only my_file
Is there some way to get only the names of files that have no whitespace changes? This seems like a bug to me, but I haven't been able to find a similar issue.
I am on git version 2.25.0