]> git.ipfire.org Git - thirdparty/git.git/commit
commit: rename `free_commit_list()` to conform to coding guidelines
authorPatrick Steinhardt <ps@pks.im>
Thu, 15 Jan 2026 09:35:34 +0000 (10:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 13:32:31 +0000 (05:32 -0800)
commit9f18d089c51fba2776fe1fece877a359c47417f7
treee51d5ec9b79ebda7f0b928d7c71f4d36adad4a81
parenta468f3cefab32eed7d9a12bd6b93719d38ec67a6
commit: rename `free_commit_list()` to conform to coding guidelines

Our coding guidelines say that:

  Functions that operate on `struct S` are named `S_<verb>()` and should
  generally receive a pointer to `struct S` as first parameter.

While most of the functions related to `struct commit_list` already
follow that naming schema, `free_commit_list()` doesn't.

Rename the function to address this and adjust all of its callers. Add a
compatibility wrapper for the old function name to ease the transition
and avoid any semantic conflicts with in-flight patch series. This
wrapper will be removed once Git 2.53 has been released.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
40 files changed:
bisect.c
blame.c
builtin/am.c
builtin/commit-tree.c
builtin/commit.c
builtin/describe.c
builtin/diff-tree.c
builtin/gc.c
builtin/log.c
builtin/merge-base.c
builtin/merge-tree.c
builtin/merge.c
builtin/pull.c
builtin/rebase.c
builtin/rev-list.c
builtin/show-branch.c
builtin/stash.c
commit-graph.c
commit-reach.c
commit.c
commit.h
contrib/coccinelle/free.cocci
diff-lib.c
fmt-merge-msg.c
line-log.c
log-tree.c
merge-ort-wrappers.c
merge-ort.c
notes-merge.c
notes-utils.c
object-name.c
pack-bitmap-write.c
ref-filter.c
reflog.c
remote.c
revision.c
sequencer.c
shallow.c
submodule.c
t/helper/test-reach.c