doc: notes: remove stripspace discussion from other options
Cleaning up whitespace in metadata is typical porcelain behavior and this default does not need to be pointed out.[1] Only speak up when the default `--stripspace` is not used. Also remove all misleading mentions of comment lines in the process; see the previous commit. Also remove the period that trails the parenthetical here. † 1: See `-F` in git-commit(1) which has nothing to say about whitespace cleanup. The cleanup discussion is on `--cleanup`. Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kristoffer Haugsbakk committed
May 27, 2025 at 23:19 UTC
159c42a063617230d57ac0030f37d722e9f07baa
1 file changed
+2
-10
Documentation/git-notes.adoc
+2
-10
@@ -144,26 +144,18 @@ OPTIONS
144
Use the given note message (instead of prompting).
145
If multiple `-m` options are given, their values
146
are concatenated as separate paragraphs.
147
- Lines starting with `#` and empty lines other than a
148
- single line between paragraphs will be stripped out.
149
- If you wish to keep them verbatim, use `--no-stripspace`.
147
148
`-F <file>`::
149
`--file=<file>`::
150
Take the note message from the given file. Use `-` to
151
read the note message from the standard input.
155
- Lines starting with `#` and empty lines other than a
156
- single line between paragraphs will be stripped out.
157
- If you wish to keep them verbatim, use `--no-stripspace`.
152
153
`-C <object>`::
154
`--reuse-message=<object>`::
155
Take the given blob object (for example, another note) as the
156
note message. (Use `git notes copy <object>` instead to
163
- copy notes between objects.). By default, message will be
164
- copied verbatim, but if you wish to strip out the lines
165
- starting with `#` and empty lines other than a single line
166
- between paragraphs, use with `--stripspace` option.
157
+ copy notes between objects.) Implies `--no-stripspace` since
158
+ the default behavior is to copy the message verbatim.
159
160
`-c <object>`::
161
`--reedit-message=<object>`::