]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: restore: remove note on --patch w/ pathspecs
authorAdam Johnson <me@adamj.eu>
Thu, 1 Jun 2023 21:14:57 +0000 (21:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Mar 2025 16:03:42 +0000 (09:03 -0700)
This note was added to the restore command docs in 46e91b663b
(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 0527ccb1b5 (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 <me@adamj.eu>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-restore.adoc

index 751f01b4418b5b6075907486a153a2f7163ddd21..877b7772e66735fc26bf26f7ef00503563b07855 100644 (file)
@@ -51,9 +51,6 @@ leave out at most one of _<rev-A>__ and _<rev-B>_, in which case it defaults to
        restore source and the restore location. See the "Interactive
        Mode" section of linkgit:git-add[1] to learn how to operate
        the `--patch` mode.
-+
-Note that `--patch` can accept no pathspec and will prompt to restore
-all modified paths.
 
 `-W`::
 `--worktree`::