diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-23 01:38:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-23 01:38:24 -0700 |
commit | 77ce907786d2c4a7789e81c83a28e829c36fab30 (patch) | |
tree | d902a70bcbb0f7386fb8f732d50ebad02140a4ff /Documentation | |
parent | 14afe77486281e411bfadd131e5c8ffc44e22a26 (diff) | |
parent | d92a39590d1126e195f1bbccf182a2cdb79218e7 (diff) | |
download | git-77ce907786d2c4a7789e81c83a28e829c36fab30.tar.gz |
Merge branch 'mt/submodule-reference'
* mt/submodule-reference:
Add --reference option to git submodule.
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-submodule.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 3b8df44673..14256c695b 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -9,10 +9,12 @@ git-submodule - Initialize, update or inspect submodules SYNOPSIS -------- [verse] -'git submodule' [--quiet] add [-b branch] [--] <repository> <path> +'git submodule' [--quiet] add [-b branch] + [--reference <repository>] [--] <repository> <path> 'git submodule' [--quiet] status [--cached] [--] [<path>...] 'git submodule' [--quiet] init [--] [<path>...] -'git submodule' [--quiet] update [--init] [-N|--no-fetch] [--] [<path>...] +'git submodule' [--quiet] update [--init] [-N|--no-fetch] + [--reference <repository>] [--] [<path>...] 'git submodule' [--quiet] summary [--summary-limit <n>] [commit] [--] [<path>...] 'git submodule' [--quiet] foreach <command> 'git submodule' [--quiet] sync [--] [<path>...] @@ -177,6 +179,14 @@ OPTIONS This option is only valid for the update command. Don't fetch new objects from the remote site. +--reference <repository>:: + This option is only valid for add and update commands. These + commands sometimes need to clone a remote repository. In this case, + this option will be passed to the linkgit:git-clone[1] command. ++ +*NOTE*: Do *not* use this option unless you have read the note +for linkgit:git-clone[1]'s --reference and --shared options carefully. + <path>...:: Paths to submodule(s). When specified this will restrict the command to only operate on the submodules found at the specified paths. |