[bug] Using --ignore-space-at-eol with --name-only does not apply the filtering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

While doing some diffing work today I found a small issue combining a
filtering and formatting flag. Let me know if anything is missing in
this email, this is my first time reporting a bug here.

What did you do before the bug happened? (Steps to reproduce your issue)
I'm using "git diff --name-only" to analyse the difference between the
current branch and a target branch.
Then I wanted to expand the preciseness, I don't actually care about
spacing differences at the end of lines, for which I use the
"--ignore-space-at-eol" flag.
The problem comes in when combining the two flags: when I do "git diff
--name-only --ignore-space-at-eol" the names of the files where only
space changes at EOL are happening still appear.

What did you expect to happen? (Expected behavior)
I expect the two flags "--name-only" and "--ignore-space-at-eol" to
work together such that files not matching the latter filter are not
shown in the output.

What happened instead? (Actual behavior)
The files that the "--ignore-space-at-eol" flag is supposed to filter
are still shown when "--name-only" is used.

What's different between what you expected and what actually happened?
Filenames being resulted that do not match the filters added by flags.

Best regards,

Bob

[System Info]
git version:
git version 2.39.5 (Apple Git-154)
cpu: arm64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:14:38
PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020 arm64
compiler info: clang: 16.0.0 (clang-1600.0.26.6)
libc info: no libc information available
$SHELL (typically, interactive shell): /bin/zsh




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux