Merge branch 'sb/submodule-move-nested'
Moving a submodule that itself has submodule in it with "git mv" forgot to make necessary adjustment to the nested sub-submodules; now the codepath learned to recurse into the submodules. * sb/submodule-move-nested: submodule: fixup nested submodules after moving the submodule submodule-config: remove submodule_from_cache submodule-config: add repository argument to submodule_from_{name, path} submodule-config: allow submodule_free to handle arbitrary repositories grep: remove "repo" arg from non-supporting funcs submodule.h: drop declaration of connect_work_tree_and_git_dir
This commit is contained in:
12
dir.h
12
dir.h
@ -359,7 +359,17 @@ struct untracked_cache *read_untracked_extension(const void *data, unsigned long
|
||||
void write_untracked_extension(struct strbuf *out, struct untracked_cache *untracked);
|
||||
void add_untracked_cache(struct index_state *istate);
|
||||
void remove_untracked_cache(struct index_state *istate);
|
||||
extern void connect_work_tree_and_git_dir(const char *work_tree, const char *git_dir);
|
||||
|
||||
/*
|
||||
* Connect a worktree to a git directory by creating (or overwriting) a
|
||||
* '.git' file containing the location of the git directory. In the git
|
||||
* directory set the core.worktree setting to indicate where the worktree is.
|
||||
* When `recurse_into_nested` is set, recurse into any nested submodules,
|
||||
* connecting them as well.
|
||||
*/
|
||||
extern void connect_work_tree_and_git_dir(const char *work_tree,
|
||||
const char *git_dir,
|
||||
int recurse_into_nested);
|
||||
extern void relocate_gitdir(const char *path,
|
||||
const char *old_git_dir,
|
||||
const char *new_git_dir);
|
||||
|
Reference in New Issue
Block a user