Skip to content

Commit

Permalink
docs: mention --refetch fetch option
Browse files Browse the repository at this point in the history
Document it for partial clones as a means to apply a new filter, and
reference it from the remote.<name>.partialclonefilter config parameter.

Signed-off-by: Robert Coup <robert@coup.net.nz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
rcoup authored and gitster committed Mar 28, 2022
1 parent 7390f05 commit 4963d3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Documentation/config/remote.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,7 @@ remote.<name>.promisor::
objects.

remote.<name>.partialclonefilter::
The filter that will be applied when fetching from this
promisor remote.
The filter that will be applied when fetching from this promisor remote.
Changing or clearing this value will only affect fetches for new commits.
To fetch associated objects for commits already present in the local object
database, use the `--refetch` option of linkgit:git-fetch[1].
3 changes: 3 additions & 0 deletions Documentation/technical/partial-clone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ Fetching Missing Objects
currently fetches all objects referred to by the requested objects, even
though they are not necessary.

- Fetching with `--refetch` will request a complete new filtered packfile from
the remote, which can be used to change a filter without needing to
dynamically fetch missing objects.

Using many promisor remotes
---------------------------
Expand Down

0 comments on commit 4963d3e

Please sign in to comment.