]> source.dussan.org Git - jgit.git/commit
Allow setting FileMode to executable when applying patches in ApplyCommand 58/71758/3
authorNadav Cohen <nadavcoh@gmail.com>
Mon, 2 May 2016 02:06:39 +0000 (19:06 -0700)
committerNadav Cohen <nadavcoh@gmail.com>
Tue, 17 May 2016 07:08:01 +0000 (00:08 -0700)
commite81592e07692284aab607e959096030027067695
tree5e4e1dbc115f592b2acc6790edcd9c3b638d09a3
parent00db4ab06ea5411732ca77cebc823d90cc59e372
Allow setting FileMode to executable when applying patches in ApplyCommand

git-apply allows modifying file modes in patched files using either
"new mode" or "new file mode" headers. This patch adds support for
setting files as executables and vice-versa.

Change-Id: I24848966b46f686f540a8efa8150b42e0d9c3ad1
Signed-off-by: Nadav Cohen <nadavcoh@gmail.com>
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M1.patch [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M1_PostImage [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M2.patch [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M2_PostImage [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M2_PreImage [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M3.patch [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M3_PostImage [new file with mode: 0644]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/diff/M3_PreImage [new file with mode: 0755]
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ApplyCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/ApplyCommand.java