]> source.dussan.org Git - jgit.git/commit
Teach UploadPack "include-tag" in "fetch" 52/119452/14
authorJonathan Tan <jonathantanmy@google.com>
Tue, 13 Mar 2018 18:07:36 +0000 (11:07 -0700)
committerJonathan Nieder <jrn@google.com>
Thu, 17 May 2018 00:16:35 +0000 (17:16 -0700)
commit5a87d50408642f619b77d12a981e6e23f407752e
tree333ed656d77c2055345cbd8d0b9f44d7be583694
parentc79e7f1c27c73732310bc64c2071a79902447dcc
Teach UploadPack "include-tag" in "fetch"

Add support for the "include-tag" parameter in the "fetch" command in
the fetch-pack/upload-pack protocol v2.

In order to determine which tags to include, only objects pointed to by
refs starting with "refs/tags/" are checked. This restriction is for
performance reasons and to match the behavior of Git (see add_ref_tag()
in builtin/pack-objects.c).

Change-Id: I7d70aa09bcc8a525218ff1559e286c2a610258ca
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java