Skip to content

Commit 9e37a74

Browse files
committed
doc: restore: synchronize <pathspec> description
`git add` shows an example of good writing, follow it. Signed-off-by: Alexandr Miloslavskiy <[email protected]>
1 parent fd16675 commit 9e37a74

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Documentation/git-restore.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ git-restore - Restore working tree files
88
SYNOPSIS
99
--------
1010
[verse]
11-
'git restore' [<options>] [--source=<tree>] [--staged] [--worktree] <pathspec>...
12-
'git restore' (-p|--patch) [<options>] [--source=<tree>] [--staged] [--worktree] [<pathspec>...]
11+
'git restore' [<options>] [--source=<tree>] [--staged] [--worktree] [--] <pathspec>...
12+
'git restore' (-p|--patch) [<options>] [--source=<tree>] [--staged] [--worktree] [--] [<pathspec>...]
1313

1414
DESCRIPTION
1515
-----------
@@ -113,6 +113,14 @@ in linkgit:git-checkout[1] for details.
113113
appear in the `--source` tree are removed, to make them match
114114
`<tree>` exactly. The default is no-overlay mode.
115115

116+
\--::
117+
Do not interpret any more arguments as options.
118+
119+
<pathspec>...::
120+
Limits the paths affected by the operation.
121+
+
122+
For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
123+
116124
EXAMPLES
117125
--------
118126

0 commit comments

Comments
 (0)