mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
Merge branch 'kn/the-repository' into kn/midx-wo-the-repository
* kn/the-repository: packfile.c: remove unnecessary prepare_packed_git() call midx: add repository to `multi_pack_index` struct config: make `packed_git_(limit|window_size)` non-global variables config: make `delta_base_cache_limit` a non-global variable packfile: pass down repository to `for_each_packed_object` packfile: pass down repository to `has_object[_kept]_pack` packfile: pass down repository to `odb_pack_name` packfile: pass `repository` to static function in the file packfile: use `repository` from `packed_git` directly packfile: add repository to struct `packed_git`
This commit is contained in:
13
revision.c
13
revision.c
@@ -390,7 +390,8 @@ static struct object *get_reference(struct rev_info *revs, const char *name,
|
||||
if (!object) {
|
||||
if (revs->ignore_missing)
|
||||
return NULL;
|
||||
if (revs->exclude_promisor_objects && is_promisor_object(oid))
|
||||
if (revs->exclude_promisor_objects &&
|
||||
is_promisor_object(revs->repo, oid))
|
||||
return NULL;
|
||||
if (revs->do_not_die_on_missing_objects) {
|
||||
oidset_insert(&revs->missing_commits, oid);
|
||||
@@ -432,7 +433,7 @@ static struct commit *handle_commit(struct rev_info *revs,
|
||||
if (revs->ignore_missing_links || (flags & UNINTERESTING))
|
||||
return NULL;
|
||||
if (revs->exclude_promisor_objects &&
|
||||
is_promisor_object(&tag->tagged->oid))
|
||||
is_promisor_object(revs->repo, &tag->tagged->oid))
|
||||
return NULL;
|
||||
if (revs->do_not_die_on_missing_objects && oid) {
|
||||
oidset_insert(&revs->missing_commits, oid);
|
||||
@@ -1211,7 +1212,7 @@ static int process_parents(struct rev_info *revs, struct commit *commit,
|
||||
revs->do_not_die_on_missing_objects;
|
||||
if (repo_parse_commit_gently(revs->repo, p, gently) < 0) {
|
||||
if (revs->exclude_promisor_objects &&
|
||||
is_promisor_object(&p->object.oid)) {
|
||||
is_promisor_object(revs->repo, &p->object.oid)) {
|
||||
if (revs->first_parent_only)
|
||||
break;
|
||||
continue;
|
||||
@@ -3920,7 +3921,7 @@ int prepare_revision_walk(struct rev_info *revs)
|
||||
revs->treesame.name = "treesame";
|
||||
|
||||
if (revs->exclude_promisor_objects) {
|
||||
for_each_packed_object(mark_uninteresting, revs,
|
||||
for_each_packed_object(revs->repo, mark_uninteresting, revs,
|
||||
FOR_EACH_OBJECT_PROMISOR_ONLY);
|
||||
}
|
||||
|
||||
@@ -4108,10 +4109,10 @@ enum commit_action get_commit_action(struct rev_info *revs, struct commit *commi
|
||||
{
|
||||
if (commit->object.flags & SHOWN)
|
||||
return commit_ignore;
|
||||
if (revs->unpacked && has_object_pack(&commit->object.oid))
|
||||
if (revs->unpacked && has_object_pack(revs->repo, &commit->object.oid))
|
||||
return commit_ignore;
|
||||
if (revs->no_kept_objects) {
|
||||
if (has_object_kept_pack(&commit->object.oid,
|
||||
if (has_object_kept_pack(revs->repo, &commit->object.oid,
|
||||
revs->keep_pack_cache_flags))
|
||||
return commit_ignore;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user