Files
git/builtin
Glen Choo 135a12bc14 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>
2022-01-18 16:22:57 -08:00
..
2021-10-13 15:15:57 -07:00
2020-07-30 19:18:06 -07:00
2021-12-15 09:39:47 -08:00
2021-10-28 09:57:09 -07:00
2021-02-25 16:43:30 -08:00
2021-02-25 16:43:30 -08:00
2021-07-28 13:17:59 -07:00
2020-03-24 15:04:43 -07:00
2021-11-10 15:01:20 -08:00
2021-10-23 10:45:25 -07:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2021-12-15 09:39:55 -08:00
2020-03-24 15:04:44 -07:00
2021-12-10 14:35:10 -08:00
2021-12-10 14:35:12 -08:00
2021-12-02 11:14:07 -08:00
2021-11-03 13:25:36 -07:00
2020-08-11 18:04:11 -07:00
2019-06-19 08:19:21 -07:00