Skip to content

Commit 10eb64f

Browse files
Miklos Vajnagitster
authored andcommitted
git pull manpage: don't include -n from fetch-options.txt
The -n option stands for --no-summary in git pull [jes: reworded the description to avoid mentioning 'git-fetch'; also exclude '-n' conditional on git-pull -- ugly because of the missing "else" statement in asciidoc] Signed-off-by: Miklos Vajna <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2b0d103 commit 10eb64f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Documentation/fetch-options.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@
2323
fetches is a descendant of `<lbranch>`. This option
2424
overrides that check.
2525

26+
ifdef::git-pull[]
27+
\--no-tags::
28+
endif::git-pull[]
29+
ifndef::git-pull[]
2630
-n, \--no-tags::
27-
By default, `git-fetch` fetches tags that point at
28-
objects that are downloaded from the remote repository
29-
and stores them locally. This option disables this
30-
automatic tag following.
31+
endif::git-pull[]
32+
By default, tags that point at objects that are downloaded
33+
from the remote repository are fetched and stored locally.
34+
This option disables this automatic tag following.
3135

3236
-t, \--tags::
3337
Most of the tags are fetched automatically as branch

Documentation/git-pull.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ OPTIONS
2525
-------
2626
include::merge-options.txt[]
2727

28+
:git-pull: 1
2829
include::fetch-options.txt[]
2930

3031
include::pull-fetch-param.txt[]

0 commit comments

Comments
 (0)