summaryrefslogtreecommitdiff
path: root/Documentation/fetch-options.txt
diff options
context:
space:
mode:
authorGlen Choo <chooglen@google.com>2022-01-19 00:00:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-01-19 00:22:57 (GMT)
commit135a12bc1472290ca6b9a4c2f06c838a1495a612 (patch)
treef35a1c2886cda9e518476eb325d8c672c4d4b26a /Documentation/fetch-options.txt
parentbec587d4c11e851c1e7b5ed7890d627c8346d1cb (diff)
downloadgit-135a12bc1472290ca6b9a4c2f06c838a1495a612.zip
git-135a12bc1472290ca6b9a4c2f06c838a1495a612.tar.gz
git-135a12bc1472290ca6b9a4c2f06c838a1495a612.tar.bz2
fetch: skip tasks related to fetching objects
cmd_fetch() does the following with the assumption that objects are fetched: * Run gc * Write commit graphs (if enabled by fetch.writeCommitGraph=true) However, neither of these tasks makes sense if objects are not fetched e.g. `git fetch --negotiate-only` never fetches objects. Speed up cmd_fetch() by bailing out early if we know for certain that objects will not be fetched. cmd_fetch() can bail out early whenever objects are not fetched, but for now this only considers --negotiate-only. The same optimization does not apply to `git fetch --dry-run` because that actually fetches objects; the dry run refers to not updating refs. Signed-off-by: Glen Choo <chooglen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/fetch-options.txt')
0 files changed, 0 insertions, 0 deletions