diff options
author | Stefan Beller <sbeller@google.com> | 2017-03-14 14:46:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-15 18:15:54 -0700 |
commit | 15cdc6477634e0227e4211de464c6443a68172c9 (patch) | |
tree | fcdc3d3d72371aa687e4bc9f4e2e26c633ed3c50 /submodule.h | |
parent | 259f3ee29666eddf65fb0fe0e3fd14aa22f33cba (diff) | |
download | git-15cdc6477634e0227e4211de464c6443a68172c9.tar.gz |
make is_submodule_populated gently
We need the gentle version in a later patch. As we have just one caller,
migrate the caller.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r-- | submodule.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h index 05ab674f06..0b915bd3ac 100644 --- a/submodule.h +++ b/submodule.h @@ -41,7 +41,13 @@ extern int submodule_config(const char *var, const char *value, void *cb); extern void gitmodules_config(void); extern void gitmodules_config_sha1(const unsigned char *commit_sha1); extern int is_submodule_initialized(const char *path); -extern int is_submodule_populated(const char *path); +/* + * Determine if a submodule has been populated at a given 'path' by checking if + * the <path>/.git resolves to a valid git repository. + * If return_error_code is NULL, die on error. + * Otherwise the return error code is the same as of resolve_gitdir_gently. + */ +extern int is_submodule_populated_gently(const char *path, int *return_error_code); extern int parse_submodule_update_strategy(const char *value, struct submodule_update_strategy *dst); extern const char *submodule_strategy_to_string(const struct submodule_update_strategy *s); |