diff options
author | Thomas Gummerer <t.gummerer@gmail.com> | 2017-02-12 21:54:14 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-13 14:20:38 -0800 |
commit | 20a7e06172fe054eac5a2f48932feb5ff5074919 (patch) | |
tree | 1906b74ea96432f7940d4c39a05b99da6476a72a /Documentation | |
parent | ad36dc8b4b165bf9eb3576b42a241164e312d48c (diff) | |
download | git-20a7e06172fe054eac5a2f48932feb5ff5074919.tar.gz git-20a7e06172fe054eac5a2f48932feb5ff5074919.tar.xz |
Documentation/stash: remove mention of git reset --hard
Don't mention git reset --hard in the documentation for git stash save.
It's an implementation detail that doesn't matter to the end user and
thus shouldn't be exposed to them. In addition it's not quite true for
git stash -p, and will not be true when a filename argument to limit the
stash to a few files is introduced.
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-stash.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index 2e9cef06e..2e9e344cd 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -47,8 +47,9 @@ OPTIONS save [-p|--patch] [-k|--[no-]keep-index] [-u|--include-untracked] [-a|--all] [-q|--quiet] [<message>]:: - Save your local modifications to a new 'stash', and run `git reset - --hard` to revert them. The <message> part is optional and gives + Save your local modifications to a new 'stash' and roll them + back to HEAD (in the working tree and in the index). + The <message> part is optional and gives the description along with the stashed state. For quickly making a snapshot, you can omit _both_ "save" and <message>, but giving only <message> does not trigger this action to prevent a misspelled |