Thread (57 messages) 57 messages, 7 authors, 2021-10-12

Re: [PATCH v3 4/7] merge-{ort,recursive}: remove add_submodule_odb()

flat view

From: Jonathan Tan <hidden>
Date: 2021-10-08 20:19:12

quoted
+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.)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help