@matheusbsbs / matheus-bagliano / commits / 3f3d8068f5
Fork 0

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 <alexandr.miloslavskiy@syntevo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Alexandr Miloslavskiy committed Feb 17, 2020 at 17:25 UTC 3f3d8068f577ccbf11a9343fbfec3b7c679a6772
1 file changed +4 -2
Documentation/git-stash.txt
+4 -2
@@ -56,13 +56,13 @@ push [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q
56 For quickly making a snapshot, you can omit "push". In this mode,
57 non-option arguments are not allowed to prevent a misspelled
58 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,
60 which are allowed after a double hyphen `--` for disambiguation.
61
62 save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [<message>]::
63
64 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.
66 Instead, all non-option arguments are concatenated to form the stash
67 message.
68
@@ -213,6 +213,8 @@ The new stash entry records the modified states only for the files
213 that match the pathspec. The index entries and working tree files
214 are then rolled back to the state in HEAD only for these files,
215 too, leaving files that do not match the pathspec intact.
216 ++
217 +For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
218
219 <stash>::
220 This option is only valid for `apply`, `branch`, `drop`, `pop`,