object-file: use designated initializers for "struct git_hash_algo"
commit0cb9872eab627ba5718716e10799db9545a7044d
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 24 Feb 2022 09:33:01 +0000 (24 10:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Feb 2022 23:59:14 +0000 (24 15:59 -0800)
tree726fc0042b72671bc61cd127f88e539a50679d7b
parent4996e0b015bd1dbb921bc359438e1385e7c87fd7
object-file: use designated initializers for "struct git_hash_algo"

As with the preceding commit, change another file-level struct
assignment to use designated initializers.

Retain the ".name = NULL" etc. in the case of the first element of
"unknown hash algorithm", to make it explicit that we're intentionally
not setting those, it's not just that we forgot.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c