summaryrefslogtreecommitdiff
path: root/t/helper/test-path-utils.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-08-11 15:46:43 +0200
committerJunio C Hamano <gitster@pobox.com>2025-08-11 09:22:21 -0700
commit25c532f6e0797ef501ce43835fb4af4bd9c33de5 (patch)
tree3eae6848b6fc79a633b4540c847d003e9803d4e4 /t/helper/test-path-utils.c
parent0d61933b8f9a0392310196578e1374283496843c (diff)
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>
Diffstat (limited to 't/helper/test-path-utils.c')
0 files changed, 0 insertions, 0 deletions