summaryrefslogtreecommitdiff
path: root/src/commit_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit_list.c')
-rw-r--r--src/commit_list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commit_list.c b/src/commit_list.c
index dfdd5daab..11cc2e7d2 100644
--- a/src/commit_list.c
+++ b/src/commit_list.c
@@ -144,18 +144,18 @@ static int commit_quick_parse(
int git_commit_list_parse(git_revwalk *walk, git_commit_list_node *commit)
{
git_odb_object *obj;
- git_commit_graph_file *cgraph = NULL;
+ git_commit_graph_file *cgraph_file = NULL;
int error;
if (commit->parsed)
return 0;
/* Let's try to use the commit graph first. */
- git_odb__get_commit_graph(&cgraph, walk->odb);
- if (cgraph) {
+ git_odb__get_commit_graph_file(&cgraph_file, walk->odb);
+ if (cgraph_file) {
git_commit_graph_entry e;
- error = git_commit_graph_entry_find(&e, cgraph, &commit->oid, GIT_OID_RAWSZ);
+ error = git_commit_graph_entry_find(&e, cgraph_file, &commit->oid, GIT_OID_RAWSZ);
if (error == 0 && git__is_uint16(e.parent_count)) {
size_t i;
commit->generation = (uint32_t)e.generation;
@@ -166,7 +166,7 @@ int git_commit_list_parse(git_revwalk *walk, git_commit_list_node *commit)
for (i = 0; i < commit->out_degree; ++i) {
git_commit_graph_entry parent;
- error = git_commit_graph_entry_parent(&parent, cgraph, &e, i);
+ error = git_commit_graph_entry_parent(&parent, cgraph_file, &e, i);
if (error < 0)
return error;
commit->parents[i] = git_revwalk__commit_lookup(walk, &parent.sha1);