checkout: respect diff.ignoreSubmodules setting
commitf440fbed3e584933e46e57290a7cde9fa820281d
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 25 Aug 2010 10:18:40 +0000 (25 12:18 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 25 Aug 2010 10:34:05 +0000 (25 12:34 +0200)
treed76bdd8c4e32afe56f25cca1f5822d821346ecee
parentf3638bd500f016fb9d6fed44539e1cea634d379c
checkout: respect diff.ignoreSubmodules setting

When 'git checkout' reports uncommitted changes, it also does so for
submodules.

The default mode is now to look really hard into submodules, not only
for different commits, but also for modified files. Since this can be
pretty expensive when there are a lot (and large) submodules, there is
the diff.ignoreSubmodules option.

Let's respect that setting when 'git checkout' reports the uncommitted
changes, since it does nothing else than a 'git diff --name-status'.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
builtin/checkout.c