Skip to content

Commit

Permalink
Merge branch 'jk/free-commit-buffer-of-skipped-commits' into maint-2.46
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Sep 13, 2024
2 parents 6074a7d + 6bd2ae6 commit bc79932
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions revision.c
Original file line number Diff line number Diff line change
Expand Up @@ -4407,6 +4407,7 @@ static struct commit *get_revision_internal(struct rev_info *revs)
c = get_revision_1(revs);
if (!c)
break;
free_commit_buffer(revs->repo->parsed_objects, c);
}
}

Expand Down

0 comments on commit bc79932

Please sign in to comment.