aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-15 14:56:41 -0800
committerJunio C Hamano <gitster@pobox.com>2017-02-15 14:56:41 -0800
commit57f7345b50d3b546ad3f7f07306f1402a00c581b (patch)
tree4c53b064feabb7b9561ae39d21fe520c00381d1b
parent3e23116d1f77f73714c67fe546d879f4bbb633a0 (diff)
parent20a7e06172fe054eac5a2f48932feb5ff5074919 (diff)
downloadgit-57f7345b50d3b546ad3f7f07306f1402a00c581b.tar.gz
git-57f7345b50d3b546ad3f7f07306f1402a00c581b.tar.xz
Merge branch 'tg/stash-doc-cleanup'
The documentation explained what "git stash" does to the working tree (after stashing away the local changes) in terms of "reset --hard", which was exposing an unnecessary implementation detail. * tg/stash-doc-cleanup: Documentation/stash: remove mention of git reset --hard
-rw-r--r--Documentation/git-stash.txt5
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