submodule: don't print status output with ignore=all
commit927b26f87a5654349b87d3217ed8e9360d9ff798
authorBrian M. Carlson <sandals@crustytoothpaste.net>
Sun, 1 Sep 2013 20:06:49 +0000 (1 20:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2013 20:53:11 +0000 (4 13:53 -0700)
treec70937e4e032963f161ad0fe5edd9a9103c115c3
parent2be945094ef753a47fa85d54dd472351f77c398c
submodule: don't print status output with ignore=all

git status prints information for submodules, but it should ignore the status of
those which have submodule.<name>.ignore set to all.  Fix it so that it does
properly ignore those which have that setting either in .git/config or in
.gitmodules.

Not ignored are submodules that are added, deleted, or moved (which is
essentially a combination of the first two) because it is not easily possible to
determine the old path once a move has occurred, nor is it easily possible to
detect which adds and deletions are moves and which are not.  This also
preserves the previous behavior of always listing modules which are to be
deleted.

Tests are included which verify that this change has no effect on git submodule
summary without the --for-status option.

Signed-off-by: Brian M. Carlson <sandals@crustytoothpaste.net>
Acked-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t7401-submodule-summary.sh
t/t7508-status.sh