[RFC PATCH 1/2] history: drop redundant strbuf_stripspace()
- From
- Jelle van der Waa <jelle@vdwaa.nl>
- Date
- Nov 7, 2026, 19:30 UTC
- Message-ID
- <20261107193020.583215-2-jelle@vdwaa.nl>
- In-Reply-To
- <20261107193020.583215-1-jelle@vdwaa.nl>
cleanup_message() with COMMIT_MSG_CLEANUP_ALL already calls strbuf_stripspace() with the same arguments.
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl> --- builtin/history.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/builtin/history.c b/builtin/history.c index 43ba76f5a1..cdb0d30784 100644 --- a/builtin/history.c +++ b/builtin/history.c @@ -94,7 +94,6 @@ static int fill_commit_message(struct repository *repo, fprintf(stderr, _("Aborting commit as launching the editor failed.\n")); return -1; } - strbuf_stripspace(out, comment_line_str); cleanup_message(out, COMMIT_MSG_CLEANUP_ALL, 0);
-- 2.56.0