From: Jonathan Tan Date: Fri, 08 Oct 2021 20:19:08 GMT Subject: Re: [PATCH v3 4/7] merge-{ort,recursive}: remove add_submodule_odb() Message-ID: <20211008201908.1325631-1-jonathantanmy@google.com> In-Reply-To: > > +void strbuf_add_unique_abbrev(struct strbuf *sb, const struct object_id *oid, > > + int abbrev_len) > > +{ > > + strbuf_repo_add_unique_abbrev(sb, the_repository, oid, abbrev_len); > > +} > > + > > Should strbuf_add_unique_abbrev() be inlined and moved to the header? I felt that it wasn't worth writing '#include "repository.h"' in strbuf.h just so that I could inline it. (The function signature just uses "struct repository" opaquely so "struct repository;" is fine, but the function definition itself will require full information about the_repository so we would need to include the file.)