git/refs
Patrick Steinhardt 1a99fe8010 object-file: move `safe_create_leading_directories()` into "path.c"
The `safe_create_leading_directories()` function and its relatives are
located in "object-file.c", which is not a good fit as they provide
generic functionality not related to objects at all. Move them into
"path.c", which already hosts `safe_create_dir()` and its relative
`safe_create_dir_in_gitdir()`.

"path.c" is free of `the_repository`, but the moved functions depend on
`the_repository` to read the "core.sharedRepository" config. Adapt the
function signature to accept a repository as argument to fix the issue
and adjust callers accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-04-15 08:24:35 -07:00
..
debug.c Merge branch 'ps/object-wo-the-repository' into ps/object-file-cleanup 2025-04-08 14:28:17 -07:00
files-backend.c object-file: move `safe_create_leading_directories()` into "path.c" 2025-04-15 08:24:35 -07:00
iterator.c refs/iterator: implement seeking for merged iterators 2025-03-12 11:31:19 -07:00
packed-backend.c Merge branch 'ps/refname-avail-check-optim' 2025-03-29 16:39:07 +09:00
packed-backend.h refs/files: use heuristic to decide whether to repack with `--auto` 2024-09-04 08:03:24 -07:00
ref-cache.c refs/iterator: implement seeking for ref-cache iterators 2025-03-12 11:31:20 -07:00
ref-cache.h refs: keep track of unresolved reference value in iterators 2024-08-09 08:47:33 -07:00
refs-internal.h refs/iterator: provide infrastructure to re-seek iterators 2025-03-12 11:31:19 -07:00
reftable-backend.c Merge branch 'ps/refname-avail-check-optim' 2025-03-29 16:39:07 +09:00