checkout: respect diff.ignoreSubmodules setting
commit2f34416b60afa83a26f0e06211e3675076dd4eca
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:18:40 +0000 (25 12:18 +0200)
tree9db2d5a9fc53cf96cd1677a7cfc40fdcc0e8ed6b
parent3172446f88f1162d188a970e460c29a89096545f
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