mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00: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:
@@ -8,7 +8,7 @@
|
||||
#include "hex.h"
|
||||
#include "object-name.h"
|
||||
#include "object-file.h"
|
||||
#include "object-store.h"
|
||||
#include "odb.h"
|
||||
#include "oidset.h"
|
||||
#include "tag.h"
|
||||
#include "blob.h"
|
||||
@@ -1907,7 +1907,8 @@ static void add_alternate_refs_to_pending(struct rev_info *revs,
|
||||
struct add_alternate_refs_data data;
|
||||
data.revs = revs;
|
||||
data.flags = flags;
|
||||
for_each_alternate_ref(add_one_alternate_ref, &data);
|
||||
odb_for_each_alternate_ref(the_repository->objects,
|
||||
add_one_alternate_ref, &data);
|
||||
}
|
||||
|
||||
static int add_parents_only(struct rev_info *revs, const char *arg_, int flags,
|
||||
|
||||
Reference in New Issue
Block a user