]> git.ipfire.org Git - thirdparty/git.git/commit
odb: consistently use "dir" to refer to alternate's directory
authorPatrick Steinhardt <ps@pks.im>
Mon, 11 Aug 2025 13:46:43 +0000 (15:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Aug 2025 16:22:21 +0000 (09:22 -0700)
commit25c532f6e0797ef501ce43835fb4af4bd9c33de5
tree3eae6848b6fc79a633b4540c847d003e9803d4e4
parent0d61933b8f9a0392310196578e1374283496843c
odb: consistently use "dir" to refer to alternate's directory

The functions that add an alternate object directory to the object
database are somewhat inconsistent in how they call the paramater that
refers to the directory path: in our headers we refer to it as "dir",
whereas in the implementation we often call it "reference" or "entry".

Unify this and consistently call the parameter "dir". While at it,
refactor `link_alt_odb_entry()` to accept a C string instead of a
`struct strbuf` as parameter to clarify that we really only need the
path and nothing else.

Suggested-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
odb.c