summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2025-01-23 12:34:23 -0500
committerJunio C Hamano <gitster@pobox.com>2025-01-23 10:28:16 -0800
commit48524fac643afd7ec70d43684902598ad6d5b954 (patch)
treeaee9c8373827708245ac71905301bffa7e58a22a /commit.c
parentd9213e4716ec8d0ac543d32a52a39c79818cb8ca (diff)
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 <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions