summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2017-10-22 17:04:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-27 00:58:38 (GMT)
commitdb37745eef62c57e1609cbd50c6dbf9a8066f191 (patch)
tree83fd416319404fd187147e74ef3e6a8958ea4c90 /git-stash.sh
parent4843cdefe3f30d19c1b2cf601522152c1413459a (diff)
downloadgit-db37745eef62c57e1609cbd50c6dbf9a8066f191.zip
git-db37745eef62c57e1609cbd50c6dbf9a8066f191.tar.gz
git-db37745eef62c57e1609cbd50c6dbf9a8066f191.tar.bz2
stash: replace "git stash save" with "git stash push" in the documentation
"git stash push" is the newer interface for creating a stash. While we are still keeping "git stash save" around for the time being, it's better to point new users of "git stash" to the more modern (and more feature rich) interface, instead of teaching them the older version that we might want to phase out in the future. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/git-stash.sh b/git-stash.sh
index 8b2ce9a..3a4e5d1 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -267,11 +267,11 @@ push_stash () {
# translation of "error: " takes in your language. E.g. in
# English this is:
#
- # $ git stash save --blah-blah 2>&1 | head -n 2
- # error: unknown option for 'stash save': --blah-blah
- # To provide a message, use git stash save -- '--blah-blah'
- eval_gettextln "error: unknown option for 'stash save': \$option
- To provide a message, use git stash save -- '\$option'"
+ # $ git stash push --blah-blah 2>&1 | head -n 2
+ # error: unknown option for 'stash push': --blah-blah
+ # To provide a message, use git stash push -m '--blah-blah'
+ eval_gettextln "error: unknown option for 'stash push': \$option
+ To provide a message, use git stash push -m '\$option'"
usage
;;
*)