Skip to content

Commit c4a95c9

Browse files
sprohaskagitster
authored andcommitted
submodule: Document the details of the command line syntax
Only "status" accepts "--cached" and the preferred way of passing sub-command specific options is after the sub-command. The documentation is adapted to reflect this. Signed-off-by: Steffen Prohaska <prohaska@zib.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a2d93ae commit c4a95c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-submodule.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ git-submodule - Initialize, update or inspect submodules
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git-submodule' [--quiet] [-b branch] add <repository> [<path>]
13-
'git-submodule' [--quiet] [--cached] [status|init|update] [--] [<path>...]
12+
'git-submodule' [--quiet] add [-b branch] [--] <repository> [<path>]
13+
'git-submodule' [--quiet] status [--cached] [--] [<path>...]
14+
'git-submodule' [--quiet] [init|update] [--] [<path>...]
1415

1516

1617
COMMANDS

0 commit comments

Comments
 (0)