]> source.dussan.org Git - jgit.git/commit
Take core.autocrlf into account for blame annotations 43/20543/4
authorKonrad Kügler <swamblumat-eclipsebugs@yahoo.de>
Sun, 12 Jan 2014 12:39:18 +0000 (13:39 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 10 Mar 2014 11:22:57 +0000 (12:22 +0100)
commitefd91ef8a7e9d97fab08a6b9a5e181c846b744cb
tree6163a9c3c552506a697bba433ed9c5edde789ec0
parent7e258e6468a2bbb357bfb06d4e844cf694325b10
Take core.autocrlf into account for blame annotations

Blaming with core.autocrlf set to 'true' - even for freshly checked out
files - showed all lines as being locally modified. For autocrlf = true
the line breaks of the local file will be converted to LF for blaming.
This results in useful diffs and therefor in the desired blame
annotations.

For autocrlf = input no conversion takes place to cope with CRLF line
breaks in the repository, in addition to the usual LF. For autocrlf =
true CRLF line breaks in the repo can't be supported without additional
effort. In that case the whole local file will be blamed as being
locally modified.

Change-Id: If020dcca54d16b2fb79210a070b8480aec82e58e
Signed-off-by: Konrad Kügler <swamblumat-eclipsebugs@yahoo.de>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/BlameCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/BlameCommand.java