From: Matthieu Moy Date: Tue, 18 Aug 2009 21:38:41 GMT Subject: [PATCH 1/3] stash: accept -k as a shortcut for --keep-index Message-ID: <1250631523-10524-2-git-send-email-Matthieu.Moy@imag.fr> In-Reply-To: <1250631523-10524-1-git-send-email-Matthieu.Moy@imag.fr> Signed-off-by: Matthieu Moy --- Documentation/git-stash.txt | 4 ++-- git-stash.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index 4b15459..1b5392a 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -13,7 +13,7 @@ SYNOPSIS 'git stash' drop [-q|--quiet] [] 'git stash' ( pop | apply ) [--index] [-q|--quiet] [] 'git stash' branch [] -'git stash' [save [--patch] [--[no-]keep-index] [-q|--quiet] []] +'git stash' [save [--patch] [--[no-]keep-index|-k] [-q|--quiet] []] 'git stash' clear 'git stash' create @@ -42,7 +42,7 @@ is also possible). OPTIONS ------- -save [--patch] [--[no-]keep-index] [-q|--quiet] []:: +save [--patch] [--[no-]keep-index|-k] [-q|--quiet] []:: Save your local modifications to a new 'stash', and run `git reset --hard` to revert them. This is the default action when no diff --git a/git-stash.sh b/git-stash.sh index 567aa5d..856a2d5 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -7,7 +7,7 @@ USAGE="list [] or: $dashless drop [-q|--quiet] [] or: $dashless ( pop | apply ) [--index] [-q|--quiet] [] or: $dashless branch [] - or: $dashless [save [--keep-index] [-q|--quiet] []] + or: $dashless [save [-k|--keep-index] [-q|--quiet] []] or: $dashless clear" SUBDIRECTORY_OK=Yes @@ -132,7 +132,7 @@ save_stash () { while test $# != 0 do case "$1" in - --keep-index) + -k|--keep-index) keep_index=t ;; --no-keep-index) -- 1.6.4.rc2.31.g2d7d7