]> source.dussan.org Git - jgit.git/commit
Support gitdir references in working tree .git file 29/5029/4
authorKevin Sawicki <kevin@github.com>
Wed, 8 Feb 2012 22:10:28 +0000 (23:10 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 8 Feb 2012 22:10:28 +0000 (23:10 +0100)
commit2f79cf9900288991e51b8da408511ead05f4d085
tree7a2afeef6e47a38e63cf4e4d2e6e022e085800bb
parent7bde08e1d4e72385e55b6b31bc7bf5bffdf63a0a
Support gitdir references in working tree .git file

A '.git' file in a repository's working tree root is now parsed
as a ref to a folder located elsewhere.  This supports submodules
having their repository location outside of the parent repository's
working directory such as in the parent repository's '.git/modules'
directory.

This adds support to BaseRepositoryBuilder for repositories created
with the '--separate-git-dir' option specified to 'git init'.

Change-Id: I73c538f6d845bdbc0c4e2bce5a77f900cf36e1a9
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/submodule/SubmoduleWalkTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java
org.eclipse.jgit/src/org/eclipse/jgit/submodule/SubmoduleWalk.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java