Skip to content

Commit 62b32e6

Browse files
LemmingAvalanchegitster
authored andcommitted
doc: notes: treat --stdin equally between copy/remove
4653801 (notes remove: --stdin reads from the standard input, 2011-05-18) added `--stdin` for the `remove` subcommand, documenting it in the “Options” section. But `copy --stdin` was added before that, in 160baa0 (notes: implement 'git notes copy --stdin', 2010-03-12). Treat this option equally between the two subcommands: • remove: mention `--stdin` on the subcommand as well, like for `copy` • copy: mention it as well under the option documentation Signed-off-by: Kristoffer Haugsbakk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a7d6c30 commit 62b32e6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Documentation/git-notes.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ When done, the user can either finalize the merge with
127127
giving zero or one object from the command line, this is
128128
equivalent to specifying an empty note message to
129129
the `edit` subcommand.
130+
+
131+
In `--stdin` mode, also remove the object names given on standard
132+
input. In other words, `--stdin` can be combined with object names from
133+
the command line.
130134

131135
`prune`::
132136
Remove all notes for non-existing/unreachable objects.
@@ -208,9 +212,9 @@ See `core.commentChar` in linkgit:git-config[1].
208212
object that does not have notes attached to it.
209213

210214
`--stdin`::
211-
Also read the object names to remove notes from the standard
212-
input (there is no reason you cannot combine this with object
213-
names from the command line).
215+
For `remove` and `copy`. See the respective subcommands. This
216+
option can be combined with object names given via the command
217+
line for `remove`. However, this is not the case for `copy`.
214218

215219
`-n`::
216220
`--dry-run`::

0 commit comments

Comments
 (0)