git diff --ignore-space-at-eol issue
- From
- John Moon <johnmoon77@hotmail.com>
- Date
- Dec 21, 2012, 15:04 UTC
- Message-ID
- <BLU163-W40634B340214076467C88ECF360@phx.gbl>
Hi all,
The --ignore-space-at-eol option is ignored when used in conjunction with --name-status. It works fine otherwise.
$ git init Initialized empty Git repository in /tmp/test/.git/ $ printf "hello\r\n" > test.txt $git -c core.autocrlf=false add test.txt $git commit -m. [master (root-commit) 5c4ce92] . 1 file changed, 1 insertion(+) create mode 100644 test.txt $ printf "hello" > test.txt $ git diff --ignore-space-at-eol test.txt $ git diff --stat --ignore-space-at-eol test.txt 0 files changed $ git diff --name-status --ignore-space-at-eol test.txt M test.txt
Thanks.