path: root/submodule.h
diff options
authorJens Lehmann <>2010-01-16 17:42:24 (GMT)
committerJunio C Hamano <>2010-01-17 00:40:50 (GMT)
commitee6fc514f2df821c2719cc49499a56ef2fb136b0 (patch)
treef5aa79026dcad4897fbb0501027d70a5d8a48cd1 /submodule.h
parent1f73566af5bec28cd8489c6139a9ede95817349c (diff)
Show submodules as modified when they contain a dirty work tree
Until now a submodule only then showed up as modified in the supermodule when the last commit in the submodule differed from the one in the index or the diffed against commit of the superproject. A dirty work tree containing new untracked or modified files in a submodule was undetectable when looking at it from the superproject. Now git status and git diff (against the work tree) in the superproject will also display submodules as modified when they contain untracked or modified files, even if the compared ref matches the HEAD of the submodule. Signed-off-by: Jens Lehmann <> Signed-off-by: Nanako Shiraishi <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'submodule.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/submodule.h b/submodule.h
index 4c0269d..0773121 100644
--- a/submodule.h
+++ b/submodule.h
@@ -4,5 +4,6 @@
void show_submodule_summary(FILE *f, const char *path,
unsigned char one[20], unsigned char two[20],
const char *del, const char *add, const char *reset);
+int is_submodule_modified(const char *path);