]> git.ipfire.org Git - thirdparty/git.git/commit
init-db: move writing repo version into a function
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 22 Feb 2020 20:17:40 +0000 (20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2020 17:33:30 +0000 (09:33 -0800)
commitefa7ae36c134cc0de6f766c1ab5dfd6b55fab65c
tree579b070299721e1dd80ca3b1665056f6cfc7b84d
parent3c9331a12980bb897ba4da24789bf36b18222f4f
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>
builtin/init-db.c
cache.h