]> git.ipfire.org Git - thirdparty/git.git/commit - git-submodule.sh
git submodule add: Require the new --force option to add ignored paths
authorJens Lehmann <Jens.Lehmann@web.de>
Sat, 17 Jul 2010 15:11:43 +0000 (17:11 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Jul 2010 18:10:43 +0000 (11:10 -0700)
commitd27b876b284b8fb82db971bc7cea8c9782614ab2
tree7b6b25de2e21825d8b728813c5bed0dee83c3542
parent8fbe9b32ce6f5e12ba3f8b9d4e3ccb0b8acf529f
git submodule add: Require the new --force option to add ignored paths

To make the behavior of "git submodule add" more consistent with "git add"
ignored submodule paths should not be silently added when they match an
entry in a .gitignore file. To be able to override that default behavior
in the same way as we can do that for "git add", the new option "--force"
is introduced.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-submodule.txt
git-submodule.sh
t/t7400-submodule-basic.sh