Merge branch 'jc/doc-skip-fetch-all-and-prefetch' into maint-2.46

Doc updates.

* jc/doc-skip-fetch-all-and-prefetch:
  doc: remote.*.skip{DefaultUpdate,FetchAll} stops prefetch
This commit is contained in:
Junio C Hamano
2024-09-23 10:33:00 -07:00
3 changed files with 13 additions and 8 deletions

View File

@ -42,14 +42,15 @@ remote.<name>.mirror::
as if the `--mirror` option was given on the command line. as if the `--mirror` option was given on the command line.
remote.<name>.skipDefaultUpdate:: remote.<name>.skipDefaultUpdate::
If true, this remote will be skipped by default when updating A deprecated synonym to `remote.<name>.skipFetchAll` (if
using linkgit:git-fetch[1] or the `update` subcommand of both are set in the configuration files with different
linkgit:git-remote[1]. values, the value of the last occurrence will be used).
remote.<name>.skipFetchAll:: remote.<name>.skipFetchAll::
If true, this remote will be skipped by default when updating If true, this remote will be skipped when updating
using linkgit:git-fetch[1] or the `update` subcommand of using linkgit:git-fetch[1], the `update` subcommand of
linkgit:git-remote[1]. linkgit:git-remote[1], and ignored by the prefetch task
of `git maitenance`.
remote.<name>.receivepack:: remote.<name>.receivepack::
The default program to execute on the remote side when pushing. See The default program to execute on the remote side when pushing. See

View File

@ -1,6 +1,7 @@
--[no-]all:: --[no-]all::
Fetch all remotes. This overrides the configuration variable Fetch all remotes, except for the ones that has the
`fetch.all`. `remote.<name>.skipFetchAll` configuration variable set.
This overrides the configuration variable fetch.all`.
-a:: -a::
--append:: --append::

View File

@ -107,6 +107,9 @@ with the prefetch task, the objects necessary to complete a later real fetch
would already be obtained, making the real fetch faster. In the ideal case, would already be obtained, making the real fetch faster. In the ideal case,
it will just become an update to a bunch of remote-tracking branches without it will just become an update to a bunch of remote-tracking branches without
any object transfer. any object transfer.
+
The `remote.<name>.skipFetchAll` configuration can be used to
exclude a particular remote from getting prefetched.
gc:: gc::
Clean up unnecessary files and optimize the local repository. "GC" Clean up unnecessary files and optimize the local repository. "GC"