summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 175f6e5)
raw | patch | inline | side by side (parent: 175f6e5)
author | Jens Lehmann <Jens.Lehmann@web.de> | |
Sat, 28 Aug 2010 14:49:25 +0000 (16:49 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 30 Aug 2010 07:37:30 +0000 (00:37 -0700) |
While at it, document that checkout uses this flag too in the Documentation.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt | patch | blob | history | |
t/t2013-checkout-submodule.sh | patch | blob | history |
index cf5562192d183911e93c998dc36a13b09764ec93..01b7e0ae6c408ff03da177050d6ad3e3e0757af2 100644 (file)
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
diff.ignoreSubmodules::
Sets the default value of --ignore-submodules. Note that this
affects only 'git diff' Porcelain, and not lower level 'diff'
- commands such as 'git diff-files'.
+ commands such as 'git diff-files'. 'git checkout' also honors
+ this setting when reporting uncommitted changes.
diff.suppressBlankEmpty::
A boolean to inhibit the standard behavior of printing a space
index fda3f0af7eb0fcaf7d0d61ff10a22e2dedaa416b..3beb0b3ed7bb62ce004979ffc8910ef3b992a0a3 100755 (executable)
git diff-files --quiet
'
+test_expect_success '"checkout <submodule>" honors diff.ignoreSubmodules' '
+ git config diff.ignoreSubmodules dirty &&
+ echo x> submodule/untracked &&
+ git checkout HEAD >actual 2>&1 &&
+ ! test -s actual
+'
+
test_done