[GSOC PATCH 0/2] commit: improve behaviour of core.commentChar=auto for comments in commit messages
- From
Ayush Chandekar <ayu.chandekar@gmail.com>
- Date
- Jul 15, 2025, 18:51 UTC
- Message-ID
- <cover.1752602474.git.ayu.chandekar@gmail.com>
- In-Reply-To
- <20250626132233.414789-1-ayu.chandekar@gmail.com>
Hey everyone,
The aim of this patch series is to improve the behaviour of core.commentChar=auto by the following patches: 1/2 - Fix a bug which reads comment character of the comments in commit message leading to change in the value of `comment_line_str` and thus resulting the comments in the final commit message. 2/2 - Standardizes the behaviour of code by resetting the 'comment_line_str' to "#" when core.commentChar is set to auto.
Thanks to Junio, Phillip and Kristoffer for reviewing the patches and also Christian for the reviews and mentoring me.
Ayush Chandekar (2):
commit: avoid scanning trailing comments when 'core.commentChar' is
"auto"
config: set comment_line_str to "#" when core.commentChar=autobuiltin/commit.c | 6 +++++- config.c | 6 ++++-- t/t3418-rebase-continue.sh | 13 +++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-)
-- 2.49.0