Skip to content

Commit 3f3d806

Browse files
SyntevoAlexgitster
authored andcommitted
doc: stash: synchronize <pathspec> description
This patch continues the effort that is already applied to `git commit`, `git reset`, `git checkout` etc. 1) Added reference to 'linkgit:gitglossary[7]'. 2) Fixed mentions of incorrectly plural "pathspecs". Signed-off-by: Alexandr Miloslavskiy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b229091 commit 3f3d806

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/git-stash.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ push [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q
5656
For quickly making a snapshot, you can omit "push". In this mode,
5757
non-option arguments are not allowed to prevent a misspelled
5858
subcommand from making an unwanted stash entry. The two exceptions to this
59-
are `stash -p` which acts as alias for `stash push -p` and pathspecs,
59+
are `stash -p` which acts as alias for `stash push -p` and pathspec elements,
6060
which are allowed after a double hyphen `--` for disambiguation.
6161

6262
save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [<message>]::
6363

6464
This option is deprecated in favour of 'git stash push'. It
65-
differs from "stash push" in that it cannot take pathspecs.
65+
differs from "stash push" in that it cannot take pathspec.
6666
Instead, all non-option arguments are concatenated to form the stash
6767
message.
6868

@@ -213,6 +213,8 @@ The new stash entry records the modified states only for the files
213213
that match the pathspec. The index entries and working tree files
214214
are then rolled back to the state in HEAD only for these files,
215215
too, leaving files that do not match the pathspec intact.
216+
+
217+
For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
216218

217219
<stash>::
218220
This option is only valid for `apply`, `branch`, `drop`, `pop`,

0 commit comments

Comments
 (0)