diff options
author | Brandon Williams <bmwill@google.com> | 2017-06-22 11:43:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-23 18:24:34 -0700 |
commit | 96dc883b3cdae83d0499b26c588fcb762361fd95 (patch) | |
tree | 9a37d2cd4118d7c9d5756455b5819be71bb2aa67 /t/t5547-push-quarantine.sh | |
parent | submodule: convert is_submodule_initialized to work on a repository (diff) | |
download | tgif-96dc883b3cdae83d0499b26c588fcb762361fd95.tar.xz |
repository: enable initialization of submodules
Introduce 'repo_submodule_init()' which performs initialization of a
'struct repository' as a submodule of another 'struct repository'.
The resulting submodule 'struct repository' can be in one of three states:
1. The submodule is initialized and has a worktree.
2. The submodule is initialized but does not have a worktree. This
would occur when the submodule's gitdir is present in the
superproject's 'gitdir/modules/' directory yet the submodule has not
been checked out in superproject's worktree.
3. The submodule remains uninitialized due to an error in the
initialization process or there is no matching submodule at the
provided path in the superproject.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5547-push-quarantine.sh')
0 files changed, 0 insertions, 0 deletions