]> source.dussan.org Git - jgit.git/commit
Keep submodules in index that are missing in working directory 13/5313/1
authorKevin Sawicki <kevin@github.com>
Sat, 10 Mar 2012 18:02:58 +0000 (10:02 -0800)
committerKevin Sawicki <kevin@github.com>
Sat, 10 Mar 2012 18:02:58 +0000 (10:02 -0800)
commit5c18fcb81b126a288445d0034ad6e9f6b47a7209
tree2d244c328ac0f70b10141a472b3f9ce8da00e26a
parentd1bde974c1c164a57388258146bfd9f29424136c
Keep submodules in index that are missing in working directory

Submodules present in the index but missing from the working
directory should not be staged for deletion when AddCommand
is called with the update flag set to true.

This mirrors the behavior of CGit.  Submodules can still be
staged for deletion by running by using the RmCommand.

Change-Id: Iee508a67f9621269d1c28d422f88c6b8dd9f8e6e
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/AddCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java