]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: split out logic regarding hash algorithms
authorPatrick Steinhardt <ps@pks.im>
Mon, 10 Mar 2025 07:13:29 +0000 (08:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Mar 2025 20:16:20 +0000 (13:16 -0700)
commit172d0f686b07a73cba2d307b2abf08e2819a77e1
tree2dfc002fdfdcb36249e01297168a66156ef42926
parent19be71db9c3faafc113c16b4ca9fc30281baf1ce
object-file: split out logic regarding hash algorithms

While we have a "hash.h" header, the actual implementation of the
subsystem is hosted by "object-file.c". This makes it harder than
necessary to find the actual implementation of the hash subsystem and
intermingles the different concerns with one another.

Split out the implementation of hash algorithms into a new, separate
"hash.c" file.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
hash.c [new file with mode: 0644]
meson.build
object-file.c