summaryrefslogtreecommitdiff
path: root/Documentation/gitrevisions.txt
diff options
context:
space:
mode:
authorLibravatar Patrick Steinhardt <ps@pks.im>2022-02-17 14:04:20 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-17 11:19:43 -0800
commitefbade066083eb0a8ccee5a8290cd3fc834705f3 (patch)
tree78e2dcb8cd79cb5f3e04652c6ef7970ace24d1be /Documentation/gitrevisions.txt
parentfetch: increase test coverage of fetches (diff)
downloadtgif-efbade066083eb0a8ccee5a8290cd3fc834705f3.tar.xz
fetch: backfill tags before setting upstream
The fetch code flow is a bit hard to understand right now: 1. We optionally prune all references which have vanished on the remote side. 2. We fetch and update all other references locally. 3. We update the upstream branch in the gitconfig. 4. We backfill tags pointing into the history we have just fetched. It is quite confusing that we fetch objects and update references in both (2) and (4), which is further stressed by the point that we use a `skip` goto label to jump from (3) to (4) in case we fail to update the gitconfig as expected. Reorder the code to first update all local references, and only after we have done so update the upstream branch information. This improves the code flow and furthermore makes it easier to refactor the way we update references together. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitrevisions.txt')
0 files changed, 0 insertions, 0 deletions