Re: [PATCH 3/7] ll-merge: add API for capturing warnings in a strbuf instead of stderr
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> I do wonder if the ll_merge() code should avoid calling warning() in the
> first place. It is after all, meant to be "low-level". We already return
> an error code from the function. I wonder if returning a more detailed
> code instead, like:
>
> enum LL_MERGE_RESULT {
> LL_MERGE_OK = 0,
> LL_MERGE_CONFLICT,
> LL_MERGE_BINARY_CONFLICT,
> };
>
> would let the caller do the sensible thing.I like it better as a longer-term direction.