summaryrefslogtreecommitdiff
path: root/t/t4258-am-quoted-cr.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-10-01 11:16:49 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-01 15:06:00 -0700
commit3b6a8db3b03adb118bfafb90bbc710068dbd6d14 (patch)
tree395cc70b50eaf08cbd321a8fd2a76b9244b298fd /t/t4258-am-quoted-cr.sh
parentobject-file.c: simplify unpack_loose_short_header() (diff)
downloadtgif-3b6a8db3b03adb118bfafb90bbc710068dbd6d14.tar.xz
object-file.c: use "enum" return type for unpack_loose_header()
In a preceding commit we changed and documented unpack_loose_header() from its previous behavior of returning any negative value or zero, to only -1 or 0. Let's add an "enum unpack_loose_header_result" type and use it for these return values, and have the compiler assert that we're exhaustively covering all of them. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4258-am-quoted-cr.sh')
0 files changed, 0 insertions, 0 deletions