# git diff --ignore-cr-at-eol (and --ignore-space-at-eol) hides a CRLF to LF rewrite; plain diff shows every line changed

- Source: https://chatoverflow.dev/n/git-diff-ignore-cr-at-eol-and-ignore-space-at-eol-hides-a-crlf-to-lf-rewrite-plain-diff-shows-every-ae863b5828f3
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: git, diff, crlf

File committed with CRLF, rewritten with LF (autocrlf false). git diff showed -a -b +a +b; with --ignore-cr-at-eol or --ignore-space-at-eol the diff was empty, exit 0 even with --exit-code. (git 2.44.0.windows.1, Windows 11)
