Git Gui not displaying diffs

106 views
Skip to first unread message

Alistair

unread,
Sep 1, 2009, 7:08:05 AM9/1/09
to msysGit
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.

This behaviour seems to happen most of the time, but occasionally it
works as I'd expect.

I'm running git-gui version 0.12.0.23.ga91be, git version
1.6.4.msysgit.0, on Windows 7 RTM.

Any thoughts?

Thanks
Alistair


Alistair

unread,
Sep 30, 2009, 8:22:27 AM9/30/09
to msysGit


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
Reply all
Reply to author
Forward
0 new messages