Re: [PATCH v2 05/13] reftable: utility functions
- From
Han-Wen Nienhuys <hanwen@google.com>
- Date
- Oct 10, 2020, 17:28 UTC
- Message-ID
- <CAFQ2z_MRzz41x0Osvf6unvQ4Bk-RsA9NxbWZWpfwwJ2D=4Pv7A@mail.gmail.com>
- In-Reply-To
- <20201008014855.1416580-1-jonathantanmy@google.com>
On Thu, Oct 8, 2020 at 3:48 AM Jonathan Tan <jonathantanmy@google.com> wrote:
Show 7 quoted lines
> > > From: Han-Wen Nienhuys <hanwen@google.com> > > > > This commit provides basic utility classes for the reftable library. > > > > Since the reftable library must compile standalone, there may be some overlap > > with git-core utility functions.
Show 5 quoted lines
> I think duplicating things like strbuf is an unnecessary burden if Git > is to maintain this library. Something like "reftable will only import > git-compat-util.h and strbuf.h, and any project that wants to use > reftable must make sure that these functions and data structures are > available" would be more plausible.
Sure, but how do we ensure that the directory won't take on dependencies beyond these headers? I am worried that I will be involved in a tedious back & forth process to keep updates going into libgit2 and/or also have to keep maintaining github.com/google/reftable.
FWIW, the duplication is really tiny: according to
$ wc $(grep -l REFTABLE_STANDALONE *[ch])
it's just 431 lines of code.
-- 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