]> source.dussan.org Git - jgit.git/commit
RepoCommand: record manifest shallow recommendation in .gitmodules 40/73840/7
authorStefan Beller <sbeller@google.com>
Tue, 31 May 2016 22:19:52 +0000 (15:19 -0700)
committerStefan Beller <sbeller@google.com>
Tue, 31 May 2016 22:19:52 +0000 (15:19 -0700)
commit6ae4ed0f7da996bde2ba5cdc26daff979c9f6866
tree92007a04a80c1cda4779b31c2d220755d42d58a7
parentddd0fe257bc78dc9646407e7121769d0c03e0d94
RepoCommand: record manifest shallow recommendation in .gitmodules

Git core learned about the submodule.<name>.shallow option in
.gitmodules files, which is a recommendation to clone a submodule
shallow. A repo manifest may record a clone depth recommendation as
an optional field, which contains more information than a binary
shallow/nonshallow recommendation, so any attempted conversion may be
lossy. In practice the clone depth recommendation is either '1' or doesn't
exist, which is the binary behavior we have in Git core.

Change-Id: I51aa9cb6d1d9660dae6ab6d21ad7bae9bc5325e6
Signed-off-by: Stefan Beller <sbeller@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/ManifestParser.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoProject.java