Re: [PATCH 4/6] doc: notes: mention comment character configuration
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 20, 2025, 19:14 UTC
- Message-ID
- <xmqqbjrnhz6k.fsf@gitster.g>
- In-Reply-To
- <f3f54a3537f71d8d4e3755d93ce58cf6472a2b7a.1747763769.git.code@khaugsbakk.name>
kristofferhaugsbakk@fastmail.com writes:
Show 25 quoted lines
> From: Kristoffer Haugsbakk <code@khaugsbakk.name> > > Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> > --- > Documentation/git-notes.adoc | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/Documentation/git-notes.adoc b/Documentation/git-notes.adoc > index 8706b33f2ee..1b714eb9e81 100644 > --- a/Documentation/git-notes.adoc > +++ b/Documentation/git-notes.adoc > @@ -186,9 +186,12 @@ OPTIONS > `--no-stripspace`:: > Strip leading and trailing whitespace from the note message. > Also strip out empty lines other than a single line between > - paragraphs. Lines starting with `#` will be stripped out > + paragraphs. Lines starting with the comment character > + (default `#`) will be stripped out > in non-editor cases like `-m`, `-F` and `-C`, but not in > editor case like `git notes edit`, `-c`, etc. > ++ > +See `core.commentChar` in linkgit:git-config[1]. > > `--ref <ref>`:: > Manipulate the notes tree in _<ref>_. This overrides
The above is more like [1/6] I commented on, rather than [2/6], so the same comment "why is it suggested that I go read about that variable?" applies. Perhaps
... starting with the comment character (the `core.commentChar`
configuration variable, if set, otherwise `#`) will be ...or something? I dunno.