sha1-file: pass git_hash_algo to write_object_file_prepare()
commit7ad5c44d9ce559703245d389aa71c4445dc9359c
authorMatheus Tavares <matheus.bernardino@usp.br>
Thu, 30 Jan 2020 20:32:21 +0000 (30 17:32 -0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jan 2020 18:45:39 +0000 (31 10:45 -0800)
tree5c400aa62abca521553f96c07238aa2d07e8eace
parentc8123e72f6d8bc4106afdd172895a28b0c30fb3b
sha1-file: pass git_hash_algo to write_object_file_prepare()

Allow write_object_file_prepare() to receive arbitrary 'struct
git_hash_algo's instead of always using the_hash_algo. The added
parameter will be used in the next commit to make hash_object_file() be
able to work with arbitrary git_hash_algo's, as well.

Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-file.c