summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorLibravatar Patrick Steinhardt <ps@pks.im>2021-09-01 15:10:02 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-01 12:43:56 -0700
commit1c7d1ab6f4a79e44406f304ec01b0a143dae9abb (patch)
tree7450965a6f0a6de5c72430fb04f37d1504e8d567 /parse-options.h
parentfetch: refactor fetch refs to be more extendable (diff)
downloadtgif-1c7d1ab6f4a79e44406f304ec01b0a143dae9abb.tar.xz
fetch: merge fetching and consuming refs
The functions `fetch_refs()` and `consume_refs()` must always be called together such that we first obtain all missing objects and then update our local refs to match the remote refs. In a subsequent patch, we'll further require that `fetch_refs()` must always be called before `consume_refs()` such that it can correctly assert that we have all objects after the fetch given that we're about to move the connectivity check. Make this requirement explicit by merging both functions into a single `fetch_and_consume_refs()` function. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.h')
0 files changed, 0 insertions, 0 deletions