git diff: Don't test submodule dirtiness with --ignore-submodules
commit4d34477f4c5dbebc55aa1362fd705440590a85f1
authorJens Lehmann <Jens.Lehmann@web.de>
Sat, 23 Jan 2010 16:37:26 +0000 (23 17:37 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jan 2010 05:03:23 +0000 (24 21:03 -0800)
treea729bc860f100fb70ef5e2553aeacd7a9ef57490
parent125fd98434ce773de45c4a40927c222ec5c43ae1
git diff: Don't test submodule dirtiness with --ignore-submodules

The diff family suppresses the output of submodule changes when
requested but checks them nonetheless. But since recently submodules
get examined for their dirtiness, which is rather expensive. There is
no need to do that when the --ignore-submodules option is used, as
the gathered information is never used anyway.

Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c