stash doc: add a warning about using create
authorRamkumar Ramachandra <artagnon@gmail.com>
Sat, 15 Jun 2013 13:13:22 +0000 (18:43 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jun 2013 16:21:52 +0000 (09:21 -0700)
Add a note saying that the user probably wants "save" in the create
description. While at it, document that it can optionally take a
message in the synopsis.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-stash.txt
index 711ffe17a7574511de6c20cb85b6cdd5a4fff5a5..cb0c1a6194794972569aabeaa900d71bb69bc697 100644 (file)
@@ -16,7 +16,7 @@ SYNOPSIS
 'git stash' [save [--patch] [-k|--[no-]keep-index] [-q|--quiet]
             [-u|--include-untracked] [-a|--all] [<message>]]
 'git stash' clear
-'git stash' create
+'git stash' create [<message>]
 
 DESCRIPTION
 -----------
@@ -151,6 +151,8 @@ create::
 
        Create a stash (which is a regular commit object) and return its
        object name, without storing it anywhere in the ref namespace.
+       This is intended to be useful for scripts.  It is probably not
+       the command you want to use; see "save" above.
 
 
 DISCUSSION