]> git.ipfire.org Git - thirdparty/git.git/commit
hash: stop typedeffing the hash context
authorPatrick Steinhardt <ps@pks.im>
Fri, 31 Jan 2025 12:55:29 +0000 (13:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jan 2025 18:06:10 +0000 (10:06 -0800)
commit7346e340f147131ca32089f61f7d0f502f80d19d
treec85e7270af3faa45fcc34afddac0e85a65731820
parent52eef501e17078b369da571d7e6b72c7494bb779
hash: stop typedeffing the hash context

We generally avoid using `typedef` in the Git codebase. One exception
though is the `git_hash_ctx`, likely because it used to be a union
rather than a struct until the preceding commit refactored it. But now
that it is a normal `struct` there isn't really a need for a typedef
anymore.

Drop the typedef and adapt all callers accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
22 files changed:
builtin/fast-import.c
builtin/index-pack.c
builtin/patch-id.c
builtin/receive-pack.c
builtin/unpack-objects.c
bulk-checkin.c
csum-file.c
csum-file.h
diff.c
diff.h
hash.h
http-push.c
http.h
object-file.c
pack-check.c
pack-write.c
read-cache.c
rerere.c
t/helper/test-hash-speed.c
t/helper/test-hash.c
t/unit-tests/u-hash.c
trace2/tr2_sid.c