]> source.dussan.org Git - jgit.git/commit
UploadPack: Implement deepen-not for protocol v2 61/130361/7
authorJonathan Tan <jonathantanmy@google.com>
Mon, 1 Oct 2018 22:50:47 +0000 (15:50 -0700)
committerJonathan Tan <jonathantanmy@google.com>
Wed, 24 Oct 2018 00:13:09 +0000 (17:13 -0700)
commit237abe6ab5908cc26211d5877bdd1b60d5158f0e
treebe4872d38b50d25830a9aeb46b6f4bc9c2fc5667
parentf5fa1eaf399275e9cc4a6418ecadfa04c10060b6
UploadPack: Implement deepen-not for protocol v2

This allows clients to use the --shallow-exclude parameter (producing a
"deepen-not <ref>" line when communicating with the server) in their fetch
commands when fetching against a JGit server using protocol v2.

Note that the implementation in this commit is somewhat inefficient, as
described in the TODO comment in DepthGenerator.

Change-Id: I9fad3ed9276b624d8f668356ffd99a067dc67ef7
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DepthGenerator.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DepthWalk.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java