提交 04d67b6a 编写于 作者: J Junio C Hamano

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
...@@ -859,7 +859,8 @@ void write_commit_graph(const char *obj_dir, ...@@ -859,7 +859,8 @@ void write_commit_graph(const char *obj_dir,
die(_("error adding pack %s"), packname.buf); die(_("error adding pack %s"), packname.buf);
if (open_pack_index(p)) if (open_pack_index(p))
die(_("error opening index for %s"), packname.buf); 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); close_pack(p);
free(p); free(p);
} }
...@@ -897,7 +898,8 @@ void write_commit_graph(const char *obj_dir, ...@@ -897,7 +898,8 @@ void write_commit_graph(const char *obj_dir,
if (report_progress) if (report_progress)
oids.progress = start_delayed_progress( oids.progress = start_delayed_progress(
_("Finding commits for commit graph"), 0); _("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); stop_progress(&oids.progress);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册