diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2010-03-04 22:20:33 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-04 22:16:33 -0800 |
commit | c7e1a73641e24340bf93f6f1792220fa9154cda3 (patch) | |
tree | d414fd7b961223be35decfc3038342d63f2f4223 /submodule.h | |
parent | 5ce9086ddfe6931ef34fcd99778c9235e2ee1839 (diff) | |
download | git-c7e1a73641e24340bf93f6f1792220fa9154cda3.tar.gz |
git diff --submodule: Show detailed dirty status of submodules
When encountering a dirty submodule while doing "git diff --submodule"
print an extra line for new untracked content and another for modified
but already tracked content. And if the HEAD of the submodule is equal
to the ref diffed against in the superproject, drop the output which
would just show the same SHA1s and no commit message headlines.
To achieve that, the dirty_submodule bitfield is expanded to two bits.
The output of "git status" inside the submodule is parsed to set the
according bits.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r-- | submodule.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h index 233696555e..267881cbe4 100644 --- a/submodule.h +++ b/submodule.h @@ -5,6 +5,6 @@ void show_submodule_summary(FILE *f, const char *path, unsigned char one[20], unsigned char two[20], unsigned dirty_submodule, const char *del, const char *add, const char *reset); -int is_submodule_modified(const char *path); +unsigned is_submodule_modified(const char *path); #endif |