Phillip Wood <phil…@gmail.com> writes:
> From: Phillip Wood <phil…@dunelm.org.uk> > > Since commit 9ccf3e9b22 (config: add core.commentString, 2024-03-27) > we have two separate config keys that set the comment string used by git > when creating template commit messages etc. As that commit notes, when > core.commentString is set to a multi-byte string, it can be useful to > keep core.commentChar set to a single character for compatibility with > older versions of git. That makes it awkward for scripts to determine > what the comment string is because they need to do something like > > { > echo ' #' > git config --get-regex '^core.comment(char|string)$' > } | sed -n '$s/^[^ ]* //p' > > Add GIT_COMMENT_STRING to "git var" to make it easier for scripts to > determine the comment string. > > Signed-off-by: Phillip Wood <phil…@dunelm.org.uk> > --- > Thanks to Junio and Kristoffer for their comments > > Changes since V2: > - Fixed sed expression in commit message > - Remove quotes around "git var" command in the documentation
This iteration matches what I expected to see after the review of the previous one. Looking good. Thanks.