aboutsummaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-13 13:39:25 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-13 13:39:25 -0800
commit528820243334c55e015047477e720a14bc9cf25f (patch)
tree773eaf04a82524688f5fb95c3c7d0453720d192b /builtin/commit.c
parent70cc3bca87abdfbc941e98d1c0d3199f758f0990 (diff)
parent9f18d089c51fba2776fe1fece877a359c47417f7 (diff)
downloadgit-528820243334c55e015047477e720a14bc9cf25f.tar.xz
Merge branch 'ps/commit-list-functions-renamed'
Rename three functions around the commit_list data structure. * ps/commit-list-functions-renamed: commit: rename `free_commit_list()` to conform to coding guidelines commit: rename `reverse_commit_list()` to conform to coding guidelines commit: rename `copy_commit_list()` to conform to coding guidelines
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index 0326546548..9e3a09d532 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -1850,7 +1850,7 @@ int cmd_commit(int argc,
} else if (amend) {
if (!reflog_msg)
reflog_msg = "commit (amend)";
- parents = copy_commit_list(current_head->parents);
+ parents = commit_list_copy(current_head->parents);
} else if (whence == FROM_MERGE) {
struct strbuf m = STRBUF_INIT;
FILE *fp;
@@ -1979,7 +1979,7 @@ int cmd_commit(int argc,
cleanup:
free_commit_extra_headers(extra);
- free_commit_list(parents);
+ commit_list_free(parents);
strbuf_release(&author_ident);
strbuf_release(&err);
strbuf_release(&sb);