2

This was the only conflict which I got when I did $ git stash pop
Its the last line of the file and both of which didn't have any newline in end.

Same line but still shows conflict

Is this something I don't know about git or is it some bug.
Git version 1.7.12

1 Answers1

2

It seems consistent with 'git: merge conflicts over newline at end of file', and typical when the setting core.autocrlf is set to false (which I recommend), instead of 'native'.
Note that a merge will not ignore those eol differences (see "Is it possible for git-merge to ignore line-ending differences?").

If you want those eol conversion done for you automaticaly, then you could consider a .gitattributes settings, as described in "Distributing git configuration with the code".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Other cause for file modification: http://stackoverflow.com/a/13121378/6309 (but encoding should impact *all* lines of the file, not just the last one) – VonC Oct 29 '12 at 12:39