Code

stash: suggest the correct command line for unknown options.
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Fri, 5 Mar 2010 18:43:23 +0000 (19:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Mar 2010 04:00:42 +0000 (20:00 -0800)
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh

index 2d691963934c31242512bd4dd349d970c0350243..aa47e541ee4fe55254edc3fb59ef534ba4d5be66 100755 (executable)
@@ -151,6 +151,7 @@ save_stash () {
                        ;;
                -*)
                        echo "error: unknown option for 'stash save': $1"
+                       echo "       To provide a message, use git stash save -- '$1'"
                        usage
                        ;;
                *)