]> source.dussan.org Git - jgit.git/commit
Handle escaped CR-LF in git config files 38/140138/4
authorThomas Wolf <thomas.wolf@paranor.ch>
Fri, 5 Apr 2019 19:33:14 +0000 (21:33 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 7 Jun 2019 23:43:22 +0000 (01:43 +0200)
commitf24ad3da66a0ea86f5674fac9442d3b4e4c78aa2
treeec130621733d11be3b3e6ce50fe5304a3e951502
parent10ab407fa6414a1c4ae08696c78e078cce078519
Handle escaped CR-LF in git config files

Canonical git treats CR-LF in config files as LF.[1][2] JGit does so,
too, except when escaped as a line continuation. Correct this and
treat the sequence \-CR-LF as a line continuation.

[1] https://github.com/git/git/commit/db2c075d9
[2] https://github.com/git/git/blob/v2.21.0/config.c#L485

Bug: 545850
Change-Id: I51e7378a22c21b3baa3701163c423d04c900af5a
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ConfigTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Config.java