Skip to content

Commit

Permalink
git submodule add now requires a <path>
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijit Menon-Sen <ams@toroid.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Abhijit Menon-Sen authored and Junio C Hamano committed Jul 30, 2008
1 parent 1ce4790 commit a56bf58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/user-manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3458,7 +3458,7 @@ $ cd super
$ git init
$ for i in a b c d
do
git submodule add ~/git/$i
git submodule add ~/git/$i $i
done
-------------------------------------------------

Expand All @@ -3471,10 +3471,10 @@ $ ls -a
. .. .git .gitmodules a b c d
-------------------------------------------------

The `git-submodule add` command does a couple of things:
The `git-submodule add <repo> <path>` command does a couple of things:

- It clones the submodule under the current directory and by default checks out
the master branch.
- It clones the submodule from <repo> to the given <path> under the
current directory and by default checks out the master branch.
- It adds the submodule's clone path to the linkgit:gitmodules[5] file and
adds this file to the index, ready to be committed.
- It adds the submodule's current commit ID to the index, ready to be
Expand Down

0 comments on commit a56bf58

Please sign in to comment.