Skip to content

Commit 26d76ca

Browse files
adamchainzgitster
authored andcommitted
doc: restore: remove note on --patch w/ pathspecs
This note was added to the restore command docs in 46e91b6 (checkout: split part of it to new command 'restore', 2019-04-25), but it is now inaccurate. The underlying builtin `add -i` implementation, made default in 0527ccb (add -i: default to the built-in implementation, 2021-11-30), supports pathspecs, so `git restore -p <pathspec>...` has worked for all users since then. I bisected to verify this was the commit that added support. Signed-off-by: Adam Johnson <[email protected]> Acked-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 683c54c commit 26d76ca

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Documentation/git-restore.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ leave out at most one of _<rev-A>__ and _<rev-B>_, in which case it defaults to
5151
restore source and the restore location. See the "Interactive
5252
Mode" section of linkgit:git-add[1] to learn how to operate
5353
the `--patch` mode.
54-
+
55-
Note that `--patch` can accept no pathspec and will prompt to restore
56-
all modified paths.
5754

5855
`-W`::
5956
`--worktree`::

0 commit comments

Comments
 (0)