author | Junio C Hamano <gitster@pobox.com> | |
Wed, 8 Dec 2010 20:25:24 +0000 (12:25 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 8 Dec 2010 20:25:24 +0000 (12:25 -0800) |
* jl/fetch-submodule-recursive:
Submodules: Add the "fetchRecurseSubmodules" config option
Add the 'fetch.recurseSubmodules' config setting
fetch/pull: Add the --recurse-submodules option
Conflicts:
builtin/fetch.c
Submodules: Add the "fetchRecurseSubmodules" config option
Add the 'fetch.recurseSubmodules' config setting
fetch/pull: Add the --recurse-submodules option
Conflicts:
builtin/fetch.c
1 | 2 | |||
---|---|---|---|---|
Documentation/config.txt | patch | | diff1 | | diff2 | | blob | history |
Documentation/fetch-options.txt | patch | | diff1 | | diff2 | | blob | history |
builtin/fetch.c | patch | | diff1 | | diff2 | | blob | history |
git-pull.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc Documentation/config.txt
Simple merge
diff --cc Documentation/fetch-options.txt
index 678675ccdf06dbe0e97d80bb3fbc8985155d2fc0,99e72d912488a73fffc816b2a006c453ab8b0e02..695696da1b6e78639014388e1d4ac8bf09a0e12d
objects reachable from the branch heads that are being
tracked will not be fetched by this mechanism. This
flag lets all tags and their associated objects be
- downloaded.
+ downloaded. The default behavior for a remote may be
+ specified with the remote.<name>.tagopt setting. See
+ linkgit:git-config[1].
+endif::git-pull[]
+
+ --[no-]recurse-submodules::
+ This option controls if new commits of all populated submodules should
+ be fetched too (see linkgit:git-config[1] and linkgit:gitmodules[5]).
+
+ ifndef::git-pull[]
+ --submodule-prefix=<path>::
+ Prepend <path> to paths printed in informative messages
+ such as "Fetching submodule foo". This option is used
+ internally when recursing over submodules.
+ endif::git-pull[]
-u::
--update-head-ok::
diff --cc builtin/fetch.c
index 6bcce55c0cdb6686e0585bf11107559ba61a5700,75032a507675914badcdce614ddd03dac4731ff8..357f3cdbbfd601e2ce3f1261a4d6b30c1257cda4
--- 1/builtin/fetch.c
--- 2/builtin/fetch.c
+++ b/builtin/fetch.c
OPT_SET_INT('n', NULL, &tags,
"do not fetch all tags (--no-tags)", TAGS_UNSET),
OPT_BOOLEAN('p', "prune", &prune,
- "prune tracking branches no longer on remote"),
+ "prune remote-tracking branches no longer on remote"),
+ OPT_SET_INT(0, "recurse-submodules", &recurse_submodules,
+ "control recursive fetching of submodules",
+ RECURSE_SUBMODULES_ON),
OPT_BOOLEAN(0, "dry-run", &dry_run,
"dry run"),
OPT_BOOLEAN('k', "keep", &keep, "keep downloaded pack"),
diff --cc git-pull.sh
Simple merge