Re: [PATCH 3/7] ll-merge: add API for capturing warnings in a strbuf instead of stderr
From: Junio C Hamano <hidden> Date: 2021-09-28 23:50:01
Jeff King [off-list ref] writes:
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.