diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-02-08 15:17:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-02-13 12:53:15 -0800 |
commit | c784b0a5b991cc8ee179b8f3a8fc0b762708947d (patch) | |
tree | 36c154cc3827d6d96cc9e2917052189b7c2987b6 /Documentation/git.txt | |
parent | 564d0252ca632e0264ed670534a51d18a689ef5d (diff) | |
download | git-c784b0a5b991cc8ee179b8f3a8fc0b762708947d.tar.gz |
git: --no-lazy-fetch option
Sometimes, especially during tests of low level machinery, it is
handy to have a way to disable lazy fetching of objects. This
allows us to say, for example, "git cat-file -e <object-name>", to
see if the object is locally available.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r-- | Documentation/git.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt index 2535a30194..95f451b22b 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -177,6 +177,11 @@ If you just want to run git as if it was started in `<path>` then use Do not use replacement refs to replace Git objects. See linkgit:git-replace[1] for more information. +--no-lazy-fetch:: + Do not fetch missing objects from the promisor remote on + demand. Useful together with `git cat-file -e <object>` to + see if the object is locally available. + --literal-pathspecs:: Treat pathspecs literally (i.e. no globbing, no pathspec magic). This is equivalent to setting the `GIT_LITERAL_PATHSPECS` environment |