diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-20 23:46:07 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-20 23:46:07 -0800 |
commit | 6a09ff14fb1df8f05f4a800fca6e2d9d670445bd (patch) | |
tree | 61fadb8d09e3daae125ca15a9024486d7cd9da85 /Documentation | |
parent | 3fa95ce52bdfa2b99b76d64949884413c04ad3cb (diff) | |
parent | 1414e5788b85787a712a30977b388200f1bc04da (diff) | |
download | git-6a09ff14fb1df8f05f4a800fca6e2d9d670445bd.tar.gz |
Merge branch 'jl/submodule-add-noname'
* jl/submodule-add-noname:
git submodule add: make the <path> parameter optional
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-submodule.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 5ccdd18c89..4ef70c42eb 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -10,7 +10,7 @@ SYNOPSIS -------- [verse] 'git submodule' [--quiet] add [-b branch] - [--reference <repository>] [--] <repository> <path> + [--reference <repository>] [--] <repository> [<path>] 'git submodule' [--quiet] status [--cached] [--recursive] [--] [<path>...] 'git submodule' [--quiet] init [--] [<path>...] 'git submodule' [--quiet] update [--init] [-N|--no-fetch] [--rebase] @@ -69,7 +69,11 @@ add:: to the changeset to be committed next to the current project: the current project is termed the "superproject". + -This requires two arguments: <repository> and <path>. +This requires at least one argument: <repository>. The optional +argument <path> is the relative location for the cloned submodule +to exist in the superproject. If <path> is not given, the +"humanish" part of the source repository is used ("repo" for +"/path/to/repo.git" and "foo" for "host.xz:foo/.git"). + <repository> is the URL of the new submodule's origin repository. This may be either an absolute URL, or (if it begins with ./ |