]> git.ipfire.org Git - thirdparty/git.git/commit
revisions API: have release_revisions() release "commits"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 13 Apr 2022 20:01:45 +0000 (22:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Apr 2022 06:56:09 +0000 (23:56 -0700)
commite966fc5a89b4db275f3855cfdff157c1a759c7c1
treeed0d4404b94a37ca7bdefd2bf7e2251c96c14efd
parentf0cb6b8053eb9146e9d5255b6b0473d020c6e8bd
revisions API: have release_revisions() release "commits"

Extend the the release_revisions() function so that it frees the
"commits" in the "struct rev_info".

We don't expect to use this "struct rev_info" again, so there's no
reason to NULL out revs->commits, as e.g. simplify_merges() and
create_boundary_commit_list() do.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c