On Sep 1, 12:08 pm, Alistair <
alist...@alibrightman.com> wrote:
> In Git Gui, the "diff" panel doesn't show any differences for unstaged
> files, even when I know the files have changed. If I do a "git diff"
> from the command line, then I see the differences as expected.
OK, I have Gnu CoreUtils installed, so there is a nice.exe in the
path. Git gui attempts to "nice" git-diff-files.exe, but nice.exe
fails. Git Gui runs the following command:
"C:/Program Files/GnuWin32/bin/nice.exe" "C:/Program Files/Git/libexec/
git-core/git-diff-files.exe" –p –no-color –U5 -– foo.txt
nice.exe prints an error message to stderr, and returns 1, because it
isn't supported on Windows. It doesn't start git-diff-files. Git gui
seems to ignore the return code, and attempts to process nice.exe's
(empty) output as a diff.
I solved this simply by removing nice.exe from the system, as it isn't
useful anyway.
I don't know if there's a better solution. As far as I can tell, Git
gui doesn't look at the return code from nice.exe. Even if it did, how
would it tell that "nice" failed rather than nice's child?
Cheers
Alistair