diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-10-01 11:16:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-01 15:06:00 -0700 |
commit | 3b6a8db3b03adb118bfafb90bbc710068dbd6d14 (patch) | |
tree | 395cc70b50eaf08cbd321a8fd2a76b9244b298fd /t/t6012-rev-list-simplify.sh | |
parent | object-file.c: simplify unpack_loose_short_header() (diff) | |
download | tgif-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/t6012-rev-list-simplify.sh')
0 files changed, 0 insertions, 0 deletions