Skip to content

Commit bc79932

Browse files
committed
Merge branch 'jk/free-commit-buffer-of-skipped-commits' into maint-2.46
The code forgot to discard unnecessary in-core commit buffer data for commits that "git log --skip=<number>" traversed but omitted from the output, which has been corrected. * jk/free-commit-buffer-of-skipped-commits: revision: free commit buffers for skipped commits
2 parents 6074a7d + 6bd2ae6 commit bc79932

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

revision.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4407,6 +4407,7 @@ static struct commit *get_revision_internal(struct rev_info *revs)
44074407
c = get_revision_1(revs);
44084408
if (!c)
44094409
break;
4410+
free_commit_buffer(revs->repo->parsed_objects, c);
44104411
}
44114412
}
44124413

0 commit comments

Comments
 (0)