Skip to content

Commit d51a475

Browse files
committed
Documentation: exclude irrelevant options from "git pull"
10eb64f (git pull manpage: don't include -n from fetch-options.txt, 2008-01-25) introduced a way to exclude some parts of included source when building git-pull documentation, and later 409b8d8 (Documentation/git-pull: put verbosity options before merge/fetch ones, 2010-02-24) attempted to use the mechanism to exclude some parts of merge-options.txt when used from git-pull.txt. However, the latter did not have an intended effect, because the macro "git-pull" used to decide if the source is included in git-pull documentation were defined a bit too late. Define the macro before it is used to fix this. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 409b8d8 commit d51a475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-pull.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ OPTIONS
4242
Options related to merging
4343
~~~~~~~~~~~~~~~~~~~~~~~~~~
4444

45-
include::merge-options.txt[]
46-
4745
:git-pull: 1
4846

47+
include::merge-options.txt[]
48+
4949
--rebase::
5050
Instead of a merge, perform a rebase after fetching. If
5151
there is a remote ref for the upstream branch, and this branch

0 commit comments

Comments
 (0)