submodule: add --progress option to add command

The '--progress' was introduced in 72c5f88311 (clone: pass --progress
decision to recursive submodules, 2016-09-22) to fix the progress reporting
of the clone command. Also add the progress option to the 'submodule add'
command. The update command already supports the progress flag, but it
is not documented.

Signed-off-by: Casey Fitzpatrick <kcghost@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Casey Fitzpatrick
2018-05-03 06:53:45 -04:00
committed by Junio C Hamano
parent c7199e3abe
commit 6d33e1c282
3 changed files with 27 additions and 1 deletions

View File

@ -239,6 +239,13 @@ OPTIONS
--quiet::
Only print error messages.
--progress::
This option is only valid for add and update commands.
Progress status is reported on the standard error stream
by default when it is attached to a terminal, unless -q
is specified. This flag forces progress status even if the
standard error stream is not directed to a terminal.
--all::
This option is only valid for the deinit command. Unregister all
submodules in the working tree.