]> git.99rst.org Git - git.git/commit
csum-file: store the hash algorithm as a struct field
authorTaylor Blau <redacted>
Thu, 23 Jan 2025 17:34:23 +0000 (12:34 -0500)
committerJunio C Hamano <redacted>
Thu, 23 Jan 2025 18:28:16 +0000 (10:28 -0800)
commit48524fac643afd7ec70d43684902598ad6d5b954
treeaee9c8373827708245ac71905301bffa7e58a22a
parentd9213e4716ec8d0ac543d32a52a39c79818cb8ca
csum-file: store the hash algorithm as a struct field

Throughout the hashfile API, we rely on a reference to 'the_hash_algo',
and call its _unsafe function variants directly.

Prepare for a future change where we may use a different 'git_hash_algo'
pointer (instead of just relying on 'the_hash_algo' throughout) by
making the 'git_hash_algo' pointer a member of the 'hashfile' structure
itself.

Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
csum-file.c
csum-file.h
git clone https://git.99rst.org/PROJECT