]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
submodules: add helper to determine if a submodule is initialized
authorBrandon Williams <bmwill@google.com>
Fri, 16 Dec 2016 19:03:17 +0000 (11:03 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Dec 2016 19:47:33 +0000 (11:47 -0800)
commitf9f42560e2911a5eef9a3d463a63cfd48d54dd07
tree4c5f441dd87ab0ed8d0d81c3be0c07a3ac19fb86
parent5688c28d81e9103a234efeedcb0568c2c4dd0bfb
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>
submodule.c
submodule.h