diff options
author | Dave Borowitz <dborowitz@google.com> | 2017-12-21 08:41:52 -0500 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2017-12-21 09:30:52 -0500 |
commit | fa24425c608e0983580fa81743de9cfda9faac2e (patch) | |
tree | 336d1cf0c652540d492806dee65abb2c8a827227 /org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/empty.gitindex.dat | |
parent | 2464fa440f7585154c591d3a12f6778026da40ff (diff) | |
download | jgit-fa24425c608e0983580fa81743de9cfda9faac2e.tar.gz jgit-fa24425c608e0983580fa81743de9cfda9faac2e.zip |
Config: Match C git behavior more closely in escaping values
So this happened:
$ git config -f foo.config foo.a 'x"y'
$ git config -f foo.config foo.b x\\y
$ git config -f foo.config foo.c $'x\ny'
$ git config -f foo.config foo.d $'x\ty'
$ git config -f foo.config foo.e $'x\by'
$ cat foo.config
[foo]
a = x\"y
b = x\\y
c = x\ny
d = x\ty
e = y
That last line is my shell interpreting the backspace byte:
$ python -c 'print repr(open("foo.config").read())'
'[foo]\n\ta = x\\"y\n\tb = x\\\\y\n\tc = x\\ny\n\td = x\\ty\n\te = x\x08y\n'
Change-Id: I1b059e1afb544c39ddb587c07bf79a06e99d0a09
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/empty.gitindex.dat')
0 files changed, 0 insertions, 0 deletions