diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2018-12-18 13:24:35 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-10 14:53:49 -0800 |
commit | 5056cf4a62338c013a723e37cbe1f525f1dcc29d (patch) | |
tree | 0e9a317a921307c77ccb12ab63ebf21fe7527ead /Documentation/git-filter-branch.txt | |
parent | fetch-pack: do not take shallow lock unnecessarily (diff) | |
download | tgif-5056cf4a62338c013a723e37cbe1f525f1dcc29d.tar.xz |
upload-pack: teach deepen-relative in protocol v2
Commit 685fbd3291 ("fetch-pack: perform a fetch using v2", 2018-03-15)
attempted to teach Git deepen-relative in protocol v2 (among other
things), but it didn't work:
(1) fetch-pack.c needs to emit "deepen-relative".
(2) upload-pack.c needs to ensure that the correct deepen_relative
variable is passed to deepen() (there are two - the static variable
and the one in struct upload_pack_data).
(3) Before deepen() computes the list of reachable shallows, it first
needs to mark all "our" refs as OUR_REF. v2 currently does not do
this, because unlike v0, it is not needed otherwise.
Fix all this and include a test demonstrating that it works now. For
(2), the static variable deepen_relative is also eliminated, removing a
source of confusion.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Reviewed-by: Josh Steadmon <steadmon@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-filter-branch.txt')
0 files changed, 0 insertions, 0 deletions