]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: store the hash algorithm instead of its length
authorPatrick Steinhardt <ps@pks.im>
Fri, 15 Aug 2025 05:49:48 +0000 (07:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Aug 2025 16:34:47 +0000 (09:34 -0700)
commite45402bb199e869c223f575bf2f44db679d00279
tree45c168817b7380ffced8686612bd1f19e397012a
parent3481cb7dfd4407d2dae411662e978011250ec2b2
commit-graph: store the hash algorithm instead of its length

The commit-graph stores the length of the hash algorithm it uses. In
subsequent commits we'll need to pass the whole hash algorithm around
though, which we currently don't have access to.

Refactor the code so that we store the hash algorithm instead of only
its size.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c
commit-graph.h