diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-07-24 08:41:17 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2018-08-10 18:44:49 -0400 |
commit | c477b0ddcb68ac0b1c26270187d82fccc70802c6 (patch) | |
tree | 7609991fe05b4fd48b0b14709dc58d2ec1811ead /org.eclipse.jgit.ant/src/org/eclipse/jgit | |
parent | bd1a82502680b5de5bf86f6c4470185fd1602386 (diff) | |
download | jgit-c477b0ddcb68ac0b1c26270187d82fccc70802c6.tar.gz jgit-c477b0ddcb68ac0b1c26270187d82fccc70802c6.zip |
Support protocol v2 want-ref in UploadPack
UploadPack already allows the client to send wanted OIDs as "want"
lines. Extend UploadPack to also allow the client to send wanted ref
names as "want-ref" lines when the fetch is done using protocol v2.
The corresponding Git commit is 516e2b76bd ("upload-pack: implement
ref-in-want", 2018-06-28).
To support a two-stage rollout, two configuration variables are
provided: uploadpack.allowrefinwant (default "false") allows clients to
specify "want-ref" in their requests, and uploadpack.advertiserefinwant
(default "true") makes UploadPack advertise this capability. If
uploadpack.allowrefinwant is true but uploadpack.advertiserefinwant is
false, UploadPack will not advertise that it supports "want-ref", but it
will support it.
Change-Id: I3c24077949640d453af90d81a7f48ce4b8ac9833
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Diffstat (limited to 'org.eclipse.jgit.ant/src/org/eclipse/jgit')
0 files changed, 0 insertions, 0 deletions