summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-12-01 12:25:54 -0800
committerJunio C Hamano <gitster@pobox.com>2016-12-01 14:44:40 -0800
commit57c28382d91c8db9d13a195899090d515b0a40ce (patch)
treed1806d0d67ee0d7931eab145a1cdb51657aa5e5a /dir.h
parent2529715dc12a8bfafa5c6686a377edd4dd1da960 (diff)
downloadgit-sb/submodule-intern-gitdir.tar.gz
submodule: add embed-git-dir functionsb/submodule-intern-gitdir
When a submodule has its git dir inside the working dir, the submodule support for checkout that we plan to add in a later patch will fail. Add functionality to migrate the git directory to be embedded into the superprojects git directory. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dir.h b/dir.h
index 97c83bb383..0b5e99b21d 100644
--- a/dir.h
+++ b/dir.h
@@ -335,4 +335,8 @@ 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);
+
+#define RELOCATE_GITDIR_RECURSE_SUBMODULES (1<<0)
+extern void relocate_gitdir(const char *prefix, const char *path, unsigned flags);
+
#endif