mirror of
https://github.com/git/git.git
synced 2024-11-06 01:03:02 +01:00
ee6fc514f2
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 <Jens.Lehmann@web.de> Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
9 lines
253 B
C
9 lines
253 B
C
#ifndef SUBMODULE_H
|
|
#define SUBMODULE_H
|
|
|
|
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);
|
|
|
|
#endif
|