]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Documentation: exclude irrelevant options from "git pull"
authorJunio C Hamano <gitster@pobox.com>
Tue, 14 Jan 2014 18:26:21 +0000 (10:26 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Jan 2014 18:46:17 +0000 (10:46 -0800)
10eb64f5 (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 409b8d82
(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 <gitster@pobox.com>
Documentation/git-pull.txt

index d47f9ddd89e2b1057a58d43c591c5bd8c1d4b96f..0e7a1fe8ae49fd2f466ff65898b8d859ca4f8240 100644 (file)
@@ -42,10 +42,10 @@ OPTIONS
 Options related to merging
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-include::merge-options.txt[]
-
 :git-pull: 1
 
+include::merge-options.txt[]
+
 --rebase::
        Instead of a merge, perform a rebase after fetching.  If
        there is a remote ref for the upstream branch, and this branch