Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Phillip Wood <phillip.wood123@gmail.com>
Cc: git@vger.kernel.org,  Jeff King <peff@peff.net>,
	 Kristoffer Haugsbakk <code@khaugsbakk.name>
Subject: Re: [PATCH v3] var: add GIT_COMMENT_STRING
Date: Sun, 29 Nov 2026 11:15:34 -0800	[thread overview]
Message-ID: <xmqq7bhvh2jt.fsf@gitster.g> (raw)
In-Reply-To: <e3dcd520771325cdb376178b12ff9b9769f72cf7.1795969120.git.phillip.wood@dunelm.org.uk> (Phillip Wood's message of "Sun, 29 Nov 2026 16:18:46 +0000")

Phillip Wood <phillip.wood123@gmail.com> writes:

> From: Phillip Wood <phillip.wood@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 <phillip.wood@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.

      reply	other threads:[~2026-11-29 19:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 10:37 [PATCH] var: add GIT_COMMENT_STRING Phillip Wood
2026-11-24 15:02 ` Kristoffer Haugsbakk
2026-11-25 16:19   ` Phillip Wood
2026-11-25 20:09     ` Kristoffer Haugsbakk
2026-11-26 16:29       ` Phillip Wood
2026-11-24 20:24 ` Junio C Hamano
2026-11-26 16:25 ` [PATCH v2] " Phillip Wood
2026-11-26 20:56   ` Junio C Hamano
2026-11-27 16:42     ` Phillip Wood
2026-11-26 21:14   ` Kristoffer Haugsbakk
2026-11-29 16:18 ` [PATCH v3] " Phillip Wood
2026-11-29 19:15   ` Junio C Hamano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqq7bhvh2jt.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=code@khaugsbakk.name \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    --cc=phillip.wood123@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox