submodule init: initialize active submodules
authorBrandon Williams <redacted>
Fri, 17 Mar 2017 22:38:02 +0000 (15:38 -0700)
committerJunio C Hamano <redacted>
Sat, 18 Mar 2017 16:51:23 +0000 (09:51 -0700)
commit3e7eaed016e6241e96de6a0140923e81cfc387e8
treee3bfda65b4bce0381f37830b20568b51b195aec4
parenta086f921a725319a6f0c2c3aacf676c890b3ce3e
submodule init: initialize active submodules

Teach `submodule init` to initialize submodules which have been
configured to be active by setting 'submodule.active' with a pathspec.

Now if no path arguments are given and 'submodule.active' is configured,
`init` will initialize all submodules which have been configured to be
active.  If no path arguments are given and 'submodule.active' is not
configured, then `init` will retain the old behavior of initializing all
submodules.

This allows users to record more complex patterns as it saves retyping
them whenever you invoke update.

Signed-off-by: Brandon Williams <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-submodule.txt
builtin/submodule--helper.c
t/t7400-submodule-basic.sh
git clone https://git.99rst.org/PROJECT