]> source.dussan.org Git - jgit.git/commit
Retain executable mode of existing files on Windows 28/4828/14
authorKevin Sawicki <kevin@github.com>
Tue, 3 Jan 2012 23:07:02 +0000 (15:07 -0800)
committerKevin Sawicki <kevin@github.com>
Tue, 3 Jan 2012 23:07:02 +0000 (15:07 -0800)
commitc15c46e41e10283858c151a7ddf8451d1cd0cc6c
tree82cf987f52309bca742d4d09811ab331a2ac9eca
parentd57c00e03696571afd92baf76cce03275b158bef
Retain executable mode of existing files on Windows

Currently files in a repository marked as executable will have
that mode unset when modified and committed on systems that
do not support detection of this mode since the working tree
iterator will never report this mode for any entries.

This change updates WorkingTreeIterator to be able
to determine the target file mode to be used for the index
through consideration of the configured WorkingTreeOptions.

Bug: 364956
Change-Id: Iae496baa011b8a59d9329ec73615482b03d34a5a
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/AddCommandTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CommitCommandTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeOptions.java