Re: [PATCH v4 11/22] fsck.h: move FSCK_{FATAL,INFO,ERROR,WARN,IGNORE} into an enum
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 17, 2021, 18:48 UTC
- Message-ID
- <xmqqo8fhvcpk.fsf@gitster.g>
- In-Reply-To
- <20210316161738.30254-12-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> Move the FSCK_{FATAL,INFO,ERROR,WARN,IGNORE} defines into a new
> fsck_msg_type enum.Nice.
> Untangling that would take some more work, since we expose the new
> "enum fsck_msg_type" to both. Similar to "enum object_type" it's not
> worth structuring the API in such a way that only those who need
> FSCK_{ERROR,WARN} pass around a different type.