Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-06 01:26:14 +0300
committerJunio C Hamano <gitster@pobox.com>2019-02-06 01:26:14 +0300
commit04d67b6ab222060546af328207ad48ae8ad58fe9 (patch)
tree8fc28e2ad5f8ac9aafeaef49ad25932c98d7d700
parent3009c8bccada0980fcc43744a897bf117632e72b (diff)
parentd7574c95bb74cd189950cc6e9cad762099382162 (diff)
Merge branch 'ab/commit-graph-write-optim'
The codepath to write out commit-graph has been optimized by following the usual pattern of visiting objects in in-pack order. * ab/commit-graph-write-optim: commit-graph write: use pack order when finding commits
-rw-r--r--commit-graph.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/commit-graph.c b/commit-graph.c
index 18bd2b6df7..8d52727def 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -859,7 +859,8 @@ void write_commit_graph(const char *obj_dir,
die(_("error adding pack %s"), packname.buf);
if (open_pack_index(p))
die(_("error opening index for %s"), packname.buf);
- for_each_object_in_pack(p, add_packed_commits, &oids, 0);
+ for_each_object_in_pack(p, add_packed_commits, &oids,
+ FOR_EACH_OBJECT_PACK_ORDER);
close_pack(p);
free(p);
}
@@ -897,7 +898,8 @@ void write_commit_graph(const char *obj_dir,
if (report_progress)
oids.progress = start_delayed_progress(
_("Finding commits for commit graph"), 0);
- for_each_packed_object(add_packed_commits, &oids, 0);
+ for_each_packed_object(add_packed_commits, &oids,
+ FOR_EACH_OBJECT_PACK_ORDER);
stop_progress(&oids.progress);
}