difftastic
difftastic copied to clipboard
`git diff` fails when comparing files that differ only in file mode
The steps to reproduce are as follows.
$ git config diff.external difft
$ touch foo bar
$ chmod 755 foo
$ git diff --no-ext-diff --no-index foo bar
diff --git foo bar
old mode 100755
new mode 100644
$ git diff --no-index foo bar
Segmentation fault: 11
$ difft --version
Difftastic 0.53.1
Tested on macOS 13.6.3
Thanks for the report. I think this might be a git issue: I can also replicate if the external diff is diff or cat.
I've reported upstream, the thread should soon appear in https://lore.kernel.org/git/ I think.
https://lore.kernel.org/git/CAFXAjY7XcL1APhLRXU8TO96z=f7957f2ieK56dHVsXUay55vpg@mail.gmail.com/T/#u
Fixed upstream, thanks for the report!