git-submodule.txt: "--branch <branch>" option defaults to 'master'

This behavior is mentioned in gitmodules.txt but not in git-submodule.txt so we copy the information over so that it is not missed. Also, add the missed argument to the -b/--branch option. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Feb 7, 2019 at 02:18 UTC 7a4bb55f3a47756b5cd9ca2d120c7fe119439e81
1 file changed +4 -3
Documentation/git-submodule.txt
+4 -3
@@ -255,13 +255,14 @@ OPTIONS
255 This option is only valid for the deinit command. Unregister all
256 submodules in the working tree.
257
258 --b::
259 ---branch::
258 +-b <branch>::
259 +--branch <branch>::
260 Branch of repository to add as submodule.
261 The name of the branch is recorded as `submodule.<name>.branch` in
262 `.gitmodules` for `update --remote`. A special value of `.` is used to
263 indicate that the name of the branch in the submodule should be the
264 - same name as the current branch in the current repository.
264 + same name as the current branch in the current repository. If the
265 + option is not specified, it defaults to 'master'.
266
267 -f::
268 --force::