mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'ps/object-store'
Code clean-up around object access API.
* ps/object-store:
odb: rename `read_object_with_reference()`
odb: rename `pretend_object_file()`
odb: rename `has_object()`
odb: rename `repo_read_object_file()`
odb: rename `oid_object_info()`
odb: trivial refactorings to get rid of `the_repository`
odb: get rid of `the_repository` when handling submodule sources
odb: get rid of `the_repository` when handling the primary source
odb: get rid of `the_repository` in `for_each()` functions
odb: get rid of `the_repository` when handling alternates
odb: get rid of `the_repository` in `odb_mkstemp()`
odb: get rid of `the_repository` in `assert_oid_type()`
odb: get rid of `the_repository` in `find_odb()`
odb: introduce parent pointers
object-store: rename files to "odb.{c,h}"
object-store: rename `object_directory` to `odb_source`
object-store: rename `raw_object_store` to `object_database`
This commit is contained in:
6
http.c
6
http.c
@@ -19,7 +19,7 @@
|
||||
#include "packfile.h"
|
||||
#include "string-list.h"
|
||||
#include "object-file.h"
|
||||
#include "object-store.h"
|
||||
#include "odb.h"
|
||||
#include "tempfile.h"
|
||||
|
||||
static struct trace_key trace_curl = TRACE_KEY_INIT(CURL);
|
||||
@@ -2662,7 +2662,7 @@ struct http_object_request *new_http_object_request(const char *base_url,
|
||||
oidcpy(&freq->oid, oid);
|
||||
freq->localfile = -1;
|
||||
|
||||
odb_loose_path(the_repository->objects->odb, &filename, oid);
|
||||
odb_loose_path(the_repository->objects->sources, &filename, oid);
|
||||
strbuf_addf(&freq->tmpfile, "%s.temp", filename.buf);
|
||||
|
||||
strbuf_addf(&prevfile, "%s.prev", filename.buf);
|
||||
@@ -2814,7 +2814,7 @@ int finish_http_object_request(struct http_object_request *freq)
|
||||
unlink_or_warn(freq->tmpfile.buf);
|
||||
return -1;
|
||||
}
|
||||
odb_loose_path(the_repository->objects->odb, &filename, &freq->oid);
|
||||
odb_loose_path(the_repository->objects->sources, &filename, &freq->oid);
|
||||
freq->rename = finalize_object_file(freq->tmpfile.buf, filename.buf);
|
||||
strbuf_release(&filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user