diff options
author | Brandon Williams <bmwill@google.com> | 2016-12-16 22:03:17 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-22 22:47:33 +0300 |
commit | f9f42560e2911a5eef9a3d463a63cfd48d54dd07 (patch) | |
tree | 4c5f441dd87ab0ed8d0d81c3be0c07a3ac19fb86 /submodule.h | |
parent | 5688c28d81e9103a234efeedcb0568c2c4dd0bfb (diff) |
submodules: add helper to determine if a submodule is initialized
Add the `is_submodule_initialized()` helper function to submodules.c.
`is_submodule_initialized()` performs a check to determine if the
submodule at the given path has been initialized.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r-- | submodule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/submodule.h b/submodule.h index c4af505981..6ec5f2f207 100644 --- a/submodule.h +++ b/submodule.h @@ -37,6 +37,7 @@ void set_diffopt_flags_from_submodule_config(struct diff_options *diffopt, const char *path); int submodule_config(const char *var, const char *value, void *cb); void gitmodules_config(void); +extern int is_submodule_initialized(const char *path); extern int is_submodule_populated(const char *path); int parse_submodule_update_strategy(const char *value, struct submodule_update_strategy *dst); |