Re: [PATCH v3 10/10] submodule add: respect submodule.active and submodule..active

2017-03-15 Thread Brandon Williams
On 03/14, Junio C Hamano wrote: > Brandon Williams writes: > > > + if git config --get submodule.active >/dev/null > > + then > > + # If the submodule being adding isn't already covered by the > > + # current configured pathspec, set the submodule's

Re: [PATCH v3 10/10] submodule add: respect submodule.active and submodule..active

2017-03-14 Thread Junio C Hamano
Brandon Williams writes: > + if git config --get submodule.active >/dev/null > + then > + # If the submodule being adding isn't already covered by the > + # current configured pathspec, set the submodule's active flag > + if ! git

[PATCH v3 10/10] submodule add: respect submodule.active and submodule..active

2017-03-13 Thread Brandon Williams
In addition to adding submodule..url to the config, set submodule..active to true unless submodule.active is configured and the submodule's path matches the configured pathspec. Signed-off-by: Brandon Williams --- git-submodule.sh | 12