summaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-07-06 20:54:46 +0200
committerJunio C Hamano <gitster@pobox.com>2023-07-06 20:54:46 +0200
commit67e7305e64fea8d15879e9dc3831fc8e31cfe619 (patch)
treed8ed9ee0a2b54f3df4619af5757d938bb5247986 /builtin/commit.c
parentMerge branch 'rs/strbuf-expand-step' (diff)
parentstrbuf: remove global variable (diff)
downloadgit-67e7305e64fea8d15879e9dc3831fc8e31cfe619.tar.xz
git-67e7305e64fea8d15879e9dc3831fc8e31cfe619.zip
Merge branch 'cw/strbuf-cleanup'
Move functions that are not about pure string manipulation out of strbuf.[ch] * cw/strbuf-cleanup: strbuf: remove global variable path: move related function to path object-name: move related functions to object-name credential-store: move related functions to credential-store file abspath: move related functions to abspath strbuf: clarify dependency strbuf: clarify API boundary
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index a9e8c62c85..22b8783b6c 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -897,7 +897,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
s->hints = 0;
if (clean_message_contents)
- strbuf_stripspace(&sb, 0);
+ strbuf_stripspace(&sb, '\0');
if (signoff)
append_signoff(&sb, ignore_non_trailer(sb.buf, sb.len), 0);