summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2024-03-29 11:45:01 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2024-04-17 22:30:10 +0200
commitdf93e407f0618e4a8265ac619dc7f4c7005155bc (patch)
tree9df998e25c0a6341e7221677bfebca19463fc870 /cache.h
parent48c171d927407132875283db3afb05b08b98a078 (diff)
downloadgit-df93e407f0618e4a8265ac619dc7f4c7005155bc.tar.xz
init: refactor the template directory discovery into its own function
We will need to call this function from `hook.c` to be able to prevent hooks from running that were written as part of a `clone` but did not originate from the template directory. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index a46a3e4b6b..8c5fb1e1ba 100644
--- a/cache.h
+++ b/cache.h
@@ -656,6 +656,7 @@ int path_inside_repo(const char *prefix, const char *path);
#define INIT_DB_QUIET 0x0001
#define INIT_DB_EXIST_OK 0x0002
+const char *get_template_dir(const char *option_template);
int init_db(const char *git_dir, const char *real_git_dir,
const char *template_dir, int hash_algo,
const char *initial_branch, unsigned int flags);