Skip to content

Commit f05558f

Browse files
rscharfegitster
authored andcommitted
pull: remove --update-head-ok from documentation
'git pull' implicitly passes --update-head-ok to 'git fetch', but doesn't itself accept that option from users. That makes sense, as it wouldn't work without the possibility to update HEAD. Remove the option from the command's documentation to match its actual behavior. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9c68873 commit f05558f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/fetch-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ ifndef::git-pull[]
204204
recursion (such as settings in linkgit:gitmodules[5] and
205205
linkgit:git-config[1]) override this option, as does
206206
specifying --[no-]recurse-submodules directly.
207-
endif::git-pull[]
208207

209208
-u::
210209
--update-head-ok::
@@ -214,6 +213,7 @@ endif::git-pull[]
214213
to communicate with 'git fetch', and unless you are
215214
implementing your own Porcelain you are not supposed to
216215
use it.
216+
endif::git-pull[]
217217

218218
--upload-pack <upload-pack>::
219219
When given, and the repository to fetch from is handled

0 commit comments

Comments
 (0)