diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-01-10 15:24:27 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-10 15:24:28 -0800 |
commit | da2b74eeec0b12d7b20d34a5e284295f81ad40a8 (patch) | |
tree | 3259c3bf07a1439bb3be7f57b352aa58d609c318 /submodule.h | |
parent | 2ced5f2c2ddcfe3a45d75ae1d552c11cad70236d (diff) | |
parent | 7c4be458b1c7ba81b0cc63d76a144261eb2395be (diff) | |
download | git-da2b74eeec0b12d7b20d34a5e284295f81ad40a8.tar.gz |
Merge branch 'sb/submodule-embed-gitdir'
A new submodule helper "git submodule embedgitdirs" to make it
easier to move embedded .git/ directory for submodules in a
superproject to .git/modules/ (and point the latter with the former
that is turned into a "gitdir:" file) has been added.
* sb/submodule-embed-gitdir:
worktree: initialize return value for submodule_uses_worktrees
submodule: add absorb-git-dir function
move connect_work_tree_and_git_dir to dir.h
worktree: check if a submodule uses worktrees
test-lib-functions.sh: teach test_commit -C <dir>
submodule helper: support super prefix
submodule: use absolute path for computing relative path connecting
Diffstat (limited to 'submodule.h')
-rw-r--r-- | submodule.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h index 23d76682b1..b7576d6f43 100644 --- a/submodule.h +++ b/submodule.h @@ -68,7 +68,6 @@ int find_unpushed_submodules(struct sha1_array *commits, const char *remotes_nam extern int push_unpushed_submodules(struct sha1_array *commits, const char *remotes_name, int dry_run); -void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir); int parallel_submodules(void); /* @@ -78,4 +77,8 @@ int parallel_submodules(void); */ void prepare_submodule_repo_env(struct argv_array *out); +#define ABSORB_GITDIR_RECURSE_SUBMODULES (1<<0) +extern void absorb_git_dir_into_superproject(const char *prefix, + const char *path, + unsigned flags); #endif |