diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2024-03-29 11:45:01 +0100 |
|---|---|---|
| committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2024-04-17 22:30:10 +0200 |
| commit | df93e407f0618e4a8265ac619dc7f4c7005155bc (patch) | |
| tree | 9df998e25c0a6341e7221677bfebca19463fc870 /cache.h | |
| parent | 48c171d927407132875283db3afb05b08b98a078 (diff) | |
| download | git-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
