Skip to content

Commit 159c42a

Browse files
LemmingAvalanchegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6521ca8 commit 159c42a

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Documentation/git-notes.adoc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,26 +144,18 @@ OPTIONS
144144
Use the given note message (instead of prompting).
145145
If multiple `-m` options are given, their values
146146
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`.
150147

151148
`-F <file>`::
152149
`--file=<file>`::
153150
Take the note message from the given file. Use `-` to
154151
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`.
158152

159153
`-C <object>`::
160154
`--reuse-message=<object>`::
161155
Take the given blob object (for example, another note) as the
162156
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.
167159

168160
`-c <object>`::
169161
`--reedit-message=<object>`::

0 commit comments

Comments
 (0)