diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2020-02-22 20:17:40 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-24 09:33:30 -0800 |
commit | efa7ae36c134cc0de6f766c1ab5dfd6b55fab65c (patch) | |
tree | 579b070299721e1dd80ca3b1665056f6cfc7b84d /cache.h | |
parent | builtin/init-db: add environment variable for new repo hash (diff) | |
download | tgif-efa7ae36c134cc0de6f766c1ab5dfd6b55fab65c.tar.xz |
init-db: move writing repo version into a function
When we perform a clone, we won't know the remote side's hash algorithm
until we've read the heads. Consequently, we'll need to rewrite the
repository format version and hash algorithm once we know what the
remote side has. Move the code that does this into its own function so
that we can call it from clone in the future.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -629,6 +629,7 @@ int path_inside_repo(const char *prefix, const char *path); int init_db(const char *git_dir, const char *real_git_dir, const char *template_dir, int hash_algo, unsigned int flags); +void initialize_repository_version(int hash_algo); void sanitize_stdfds(void); int daemonize(void); |