Incorrect code changes (diff) displayed in Git GUI

340 views
Skip to first unread message

Damon Harris

unread,
May 16, 2017, 10:11:53 AM5/16/17
to git-for-windows
Hello, I used Git GUI to view the list of commit in the master branch of a repository. Most of the commits has incorrect code changes being shown... first the entire file is removed and then the new modified file is added again to the empty file according to the GUI, here is an example commit:



And here is the exact same commit at GitHub which shows the correct diff.


Is this a bug? or is something wrong with my Git for Windows configuration... Thanks in Advance :)

Johannes Schindelin

unread,
May 16, 2017, 10:33:56 AM5/16/17
to Damon Harris, git-for-windows
Hi Damon,

On Tue, 16 May 2017, Damon Harris wrote:

> Most of the commits has incorrect code changes being shown... first the
> entire file is removed and then the new modified file is added again to
> the empty file according to the GUI

Potentially a line ending issue. Maybe you are flip-flopping between CR/LF
and LF-only line endings?

Ciao,
Johannes
Reply all
Reply to author
Forward
0 new messages