Here is the updated version of the two patches.
This fixes all issues raised and passes the test suite.
Jens Lehmann (1):
Show submodules as modified when they contain a dirty work tree
Junio C Hamano (1):
Teach diff that modified submodule directory is dirty
diff-lib.c | 8 +++-
diff.c | 9 ++++-
submodule.c | 49 +++++++++++++++++++++++++
submodule.h | 1 +
t/t4027-diff-submodule.sh | 84 ++++++++++++++++++++++++++++++++++++++++++-
t/t7506-status-submodule.sh | 83 ++++++++++++++++++++++++++++++++++--------
6 files changed, 214 insertions(+), 20 deletions(-)