diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-15 14:11:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 14:11:16 -0700 |
commit | ededf2bc5cb41c2aef8b3c7e89d5c1ceb068ac1a (patch) | |
tree | eb1e4f47f82c1ded7693ae344a545912f957a59f /git-submodule.txt | |
parent | 8401f142a88980c91f3af6f06199e5579c9143c6 (diff) | |
download | git-htmldocs-ededf2bc5cb41c2aef8b3c7e89d5c1ceb068ac1a.tar.gz |
Autogenerated HTML docs for v1.8.3.3-754-g9c3c3
Diffstat (limited to 'git-submodule.txt')
-rw-r--r-- | git-submodule.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/git-submodule.txt b/git-submodule.txt index bfff09062..bfef8a0c6 100644 --- a/git-submodule.txt +++ b/git-submodule.txt @@ -10,12 +10,12 @@ SYNOPSIS -------- [verse] 'git submodule' [--quiet] add [-b <branch>] [-f|--force] [--name <name>] - [--reference <repository>] [--] <repository> [<path>] + [--reference <repository>] [--depth <depth>] [--] <repository> [<path>] 'git submodule' [--quiet] status [--cached] [--recursive] [--] [<path>...] 'git submodule' [--quiet] init [--] [<path>...] 'git submodule' [--quiet] deinit [-f|--force] [--] <path>... 'git submodule' [--quiet] update [--init] [--remote] [-N|--no-fetch] - [-f|--force] [--rebase] [--reference <repository>] + [-f|--force] [--rebase] [--reference <repository>] [--depth <depth>] [--merge] [--recursive] [--] [<path>...] 'git submodule' [--quiet] summary [--cached|--files] [(-n|--summary-limit) <n>] [commit] [--] [<path>...] @@ -159,7 +159,9 @@ update:: This will make the submodules HEAD be detached unless `--rebase` or `--merge` is specified or the key `submodule.$name.update` is set to `rebase`, `merge` or `none`. `none` can be overridden by specifying - `--checkout`. + `--checkout`. Setting the key `submodule.$name.update` to `!command` + will cause `command` to be run. `command` can be any arbitrary shell + command that takes a single argument, namely the sha1 to update to. + If the submodule is not yet initialized, and you just want to use the setting as stored in .gitmodules, you can automatically initialize the @@ -328,6 +330,12 @@ for linkgit:git-clone[1]'s `--reference` and `--shared` options carefully. only in the submodules of the current repo, but also in any nested submodules inside those submodules (and so on). +--depth:: + This option is valid for add and update commands. Create a 'shallow' + clone with a history truncated to the specified number of revisions. + See linkgit:git-clone[1] + + <path>...:: Paths to submodule(s). When specified this will restrict the command to only operate on the submodules found at the specified paths. |