Refactor dirty submodule detection in diff-lib.c
authorJens Lehmann <Jens.Lehmann@web.de>
Thu, 11 Mar 2010 21:50:25 +0000 (22:50 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 13 Mar 2010 06:17:17 +0000 (22:17 -0800)
commitae6d5c1b6f78ef48f606e5a267915fa31b37a679
treea996130e95e7b8406148b630b0ad6ba998b47ca4
parent9297f77e6d350f33de961e149dc33c77e7392db4
Refactor dirty submodule detection in diff-lib.c

Moving duplicated code into the new function match_stat_with_submodule().
Replacing the implicit activation of detailed checks for the dirtiness of
submodules when DIFF_FORMAT_PATCH was selected with explicitly setting
the recently added DIFF_OPT_DIRTY_SUBMODULES option in diff_setup_done().

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