diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-04-29 09:52:16 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-29 10:08:12 -0700 |
| commit | 56ef85e82ffa39ac86db39bc0ac11c67451d0e5b (patch) | |
| tree | 2b6874b1aaeace33a53e1bedf5f4f55c5cd09859 /http-walker.c | |
| parent | object-store: move `struct packed_git` into "packfile.h" (diff) | |
| download | git-56ef85e82ffa39ac86db39bc0ac11c67451d0e5b.tar.gz git-56ef85e82ffa39ac86db39bc0ac11c67451d0e5b.zip | |
object-store: drop `loose_object_path()`
The function `loose_object_path()` is a trivial wrapper around
`odb_loose_path()`, with the only exception that it always uses the
primary object database of the given repository. This doesn't really add
a ton of value though, so let's drop the function and inline it at every
callsite.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-walker.c')
| -rw-r--r-- | http-walker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http-walker.c b/http-walker.c index 882cae19c2..95458e2f63 100644 --- a/http-walker.c +++ b/http-walker.c @@ -9,6 +9,7 @@ #include "list.h" #include "transport.h" #include "packfile.h" +#include "object-file.h" #include "object-store.h" struct alt_base { @@ -540,7 +541,7 @@ static int fetch_object(struct walker *walker, const struct object_id *oid) ret = error("File %s has bad hash", hex); } else if (req->rename < 0) { struct strbuf buf = STRBUF_INIT; - loose_object_path(the_repository, &buf, &req->oid); + odb_loose_path(the_repository->objects->odb, &buf, &req->oid); ret = error("unable to write sha1 filename %s", buf.buf); strbuf_release(&buf); } |
