Merge branch 'dl/doc-submodule-wo-subcommand'
Doc update. * dl/doc-submodule-wo-subcommand: submodule: document default behavior
This commit is contained in:
commit
c388c12c92
@ -9,6 +9,7 @@ git-submodule - Initialize, update or inspect submodules
|
|||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
[verse]
|
[verse]
|
||||||
|
'git submodule' [--quiet] [--cached]
|
||||||
'git submodule' [--quiet] add [<options>] [--] <repository> [<path>]
|
'git submodule' [--quiet] add [<options>] [--] <repository> [<path>]
|
||||||
'git submodule' [--quiet] status [--cached] [--recursive] [--] [<path>...]
|
'git submodule' [--quiet] status [--cached] [--recursive] [--] [<path>...]
|
||||||
'git submodule' [--quiet] init [--] [<path>...]
|
'git submodule' [--quiet] init [--] [<path>...]
|
||||||
@ -28,6 +29,9 @@ For more information about submodules, see linkgit:gitsubmodules[7].
|
|||||||
|
|
||||||
COMMANDS
|
COMMANDS
|
||||||
--------
|
--------
|
||||||
|
With no arguments, shows the status of existing submodules. Several
|
||||||
|
subcommands are available to perform operations on the submodules.
|
||||||
|
|
||||||
add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--depth <depth>] [--] <repository> [<path>]::
|
add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--depth <depth>] [--] <repository> [<path>]::
|
||||||
Add the given repository as a submodule at the given path
|
Add the given repository as a submodule at the given path
|
||||||
to the changeset to be committed next to the current
|
to the changeset to be committed next to the current
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
# Copyright (c) 2007 Lars Hjemli
|
# Copyright (c) 2007 Lars Hjemli
|
||||||
|
|
||||||
dashless=$(basename "$0" | sed -e 's/-/ /')
|
dashless=$(basename "$0" | sed -e 's/-/ /')
|
||||||
USAGE="[--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
|
USAGE="[--quiet] [--cached]
|
||||||
|
or: $dashless [--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>]
|
||||||
or: $dashless [--quiet] status [--cached] [--recursive] [--] [<path>...]
|
or: $dashless [--quiet] status [--cached] [--recursive] [--] [<path>...]
|
||||||
or: $dashless [--quiet] init [--] [<path>...]
|
or: $dashless [--quiet] init [--] [<path>...]
|
||||||
or: $dashless [--quiet] deinit [-f|--force] (--all| [--] <path>...)
|
or: $dashless [--quiet] deinit [-f|--force] (--all| [--] <path>...)
|
||||||
|
Loading…
Reference in New Issue
Block a user