]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'rs/commit-commit-stack'
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2026 21:30:42 +0000 (13:30 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2026 21:30:42 +0000 (13:30 -0800)
Code clean-up to use the commit_stack API.

* rs/commit-commit-stack:
  commit: use commit_stack

1  2 
commit.c

diff --cc commit.c
index 8f68bbea77483124e98724e6c7c1bdeeaec6a50a,22ef0ea6a3191ccd4cc5a27874fd17bddc7eeaa7..d16ae7334510e02c957402ca4de41ff3fa8a6fc0
+++ b/commit.c
@@@ -1105,8 -1103,8 +1102,8 @@@ struct commit *get_fork_point(const cha
        ret = bases->item;
  
  cleanup_return:
-       free(revs.commit);
+       commit_stack_clear(&revs.stack);
 -      free_commit_list(bases);
 +      commit_list_free(bases);
        free(full_refname);
        return ret;
  }