init: refactor the template directory discovery into its own function
commitdf93e407f0618e4a8265ac619dc7f4c7005155bc
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 29 Mar 2024 10:45:01 +0000 (29 11:45 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 17 Apr 2024 20:30:10 +0000 (17 22:30 +0200)
tree9df998e25c0a6341e7221677bfebca19463fc870
parent48c171d927407132875283db3afb05b08b98a078
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>
builtin/init-db.c
cache.h
setup.c