diff options
author | Stefan Beller <sbeller@google.com> | 2016-12-01 12:25:54 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-01 14:44:40 -0800 |
commit | 57c28382d91c8db9d13a195899090d515b0a40ce (patch) | |
tree | d1806d0d67ee0d7931eab145a1cdb51657aa5e5a /dir.h | |
parent | 2529715dc12a8bfafa5c6686a377edd4dd1da960 (diff) | |
download | git-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |