Re: [PATCH v6? 00/17] refs API: get rid of errno setting entirely
- From
Han-Wen Nienhuys <hanwen@google.com>
- Date
- Jul 14, 2021, 08:43 UTC
- Message-ID
- <CAFQ2z_NcBZS7w2YQ0CCT-0ffHdjk229OcLc5Zg4v7Tej62CGiA@mail.gmail.com>
- In-Reply-To
- <87lf691e6t.fsf@evledraar.gmail.com>
On Wed, Jul 14, 2021 at 10:40 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 8 quoted lines
> >> It adds resolve_refs_unsafe_with_errno() to the public API in refs.h, > >> and I think it has an ugly signature, but I suppose it's better than > >> having the output be implicit through the global errno variable. > > > > Yeah it is a bit ugly, perhaps we should just end up using the old name > > once there's no callers of the old one? > > I looked at doing this, I don't think it's worth it.
..
> And in any case with reftable I suspect that we'll end up refactoring > further down the line sooner than later, i.e. to pass a "struct strbuf > *err" or something, so getting it 100% right here seems premature.
SGTM.
-- Han-Wen Nienhuys - Google Munich I work 80%. Don't expect answers from me on Fridays. -- Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Paul Manicle, Halimah DeLaine Prado