Re: [PATCH 12/15] git submodule summary respects groups
Stefan Beller <sbeller@google.com> writes:
> Signed-off-by: Stefan Beller <sbeller@google.com>
> ---
Same comment as 11/15 applies here.
Show 18 quoted lines
> git-submodule.sh | 5 +++++
> t/t7413-submodule--helper.sh | 26 ++++++++++++++++++++++++++
> 2 files changed, 31 insertions(+)
>
> diff --git a/git-submodule.sh b/git-submodule.sh
> index 253ad07..f065b1f 100755
> --- a/git-submodule.sh
> +++ b/git-submodule.sh
> @@ -833,6 +833,11 @@ cmd_summary() {
> sane_egrep '^:([0-7]* )?160000' |
> while read mod_src mod_dst sha1_src sha1_dst status sm_path
> do
> + # ignore modules not in group
> + if ! git submodule--helper in-group $sm_path
> + then
> + continue
> + fi
> # Always show modules deleted or type-changed (blob<->module)