summaryrefslogtreecommitdiff
path: root/Documentation/fetch-options.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-08-24 21:54:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-24 21:54:31 (GMT)
commitb55605073381a9863b3c2b3b6627122fe9b90453 (patch)
tree46ef750609127c8e3c427f5bfad478a0f4e394e7 /Documentation/fetch-options.txt
parentd1ff7411f3538812796048e8f5bba717bb79fa2f (diff)
parent887952b8c680626f4721cb5fa57704478801aca4 (diff)
downloadgit-b55605073381a9863b3c2b3b6627122fe9b90453.zip
git-b55605073381a9863b3c2b3b6627122fe9b90453.tar.gz
git-b55605073381a9863b3c2b3b6627122fe9b90453.tar.bz2
Merge branch 'jc/no-update-fetch-head'
"git fetch" learned --no-write-fetch-head option to avoid writing the FETCH_HEAD file. * jc/no-update-fetch-head: fetch: optionally allow disabling FETCH_HEAD update
Diffstat (limited to 'Documentation/fetch-options.txt')
-rw-r--r--Documentation/fetch-options.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt
index ff70625..e8104c0 100644
--- a/Documentation/fetch-options.txt
+++ b/Documentation/fetch-options.txt
@@ -64,6 +64,15 @@ documented in linkgit:git-config[1].
--dry-run::
Show what would be done, without making any changes.
+ifndef::git-pull[]
+--[no-]write-fetch-head::
+ Write the list of remote refs fetched in the `FETCH_HEAD`
+ file directly under `$GIT_DIR`. This is the default.
+ Passing `--no-write-fetch-head` from the command line tells
+ Git not to write the file. Under `--dry-run` option, the
+ file is never written.
+endif::git-pull[]
+
-f::
--force::
When 'git fetch' is used with `<src>:<dst>` refspec it may