]> git.ipfire.org Git - thirdparty/git.git/commit - submodule.c
submodules: add helper to determine if a submodule is populated
authorBrandon Williams <bmwill@google.com>
Fri, 16 Dec 2016 19:03:16 +0000 (11:03 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Dec 2016 19:47:33 +0000 (11:47 -0800)
commit5688c28d81e9103a234efeedcb0568c2c4dd0bfb
tree34dbf55bef024a00b253b50a9245dfdcfaefbb51
parente9a379c352b02ca560c58a56aa723994aa42666f
submodules: add helper to determine if a submodule is populated

Add the `is_submodule_populated()` helper function to submodules.c.
`is_submodule_populated()` performes a check to see if a submodule has
been checkout out (and has a valid .git directory/file) at the given path.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c
submodule.h