diff options
author | Brandon Williams <bmwill@google.com> | 2017-06-22 20:43:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-24 03:24:34 +0200 |
commit | 627d9342fe38598c995578d57cec6cbad1dcbc69 (patch) | |
tree | 1f2153e27ab14403f9d1d755da71c61a9b048df2 /submodule.h | |
parent | submodule: add repo_read_gitmodules (diff) | |
download | git-627d9342fe38598c995578d57cec6cbad1dcbc69.tar.xz git-627d9342fe38598c995578d57cec6cbad1dcbc69.zip |
submodule: convert is_submodule_initialized to work on a repository
Convert 'is_submodule_initialized()' to take a repository object and
while we're at it, lets rename the function to 'is_submodule_active()'
and remove the NEEDSWORK comment.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h index 8a3771ec63..623ce6ad77 100644 --- a/submodule.h +++ b/submodule.h @@ -49,7 +49,7 @@ void load_submodule_cache(void); extern void gitmodules_config(void); extern void repo_read_gitmodules(struct repository *repo); extern void gitmodules_config_sha1(const unsigned char *commit_sha1); -extern int is_submodule_initialized(const char *path); +extern int is_submodule_active(struct repository *repo, 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. |