From: Jon Seymour Date: Tue, 10 Aug 2010 00:04:44 GMT Subject: [PATCH v4 5/9] stash: teach git stash drop to fail early if the specified revision is not a stash reference Message-ID: <1281398688-21008-6-git-send-email-jon.seymour@gmail.com> In-Reply-To: <1281242771-24764-1-git-send-email-jon.seymour@gmail.com> Previously, git stash drop would fail noisily while executing git reflog delete if the specified revision argument was not a stash reference. Now, git stash drop fails with an error message which more precisely indicates the reason for failure. Signed-off-by: Jon Seymour --- git-stash.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/git-stash.sh b/git-stash.sh index 4f28c09..86cd446 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -379,6 +379,7 @@ drop_stash () { shift fi + assert_stash_ref "$@" assert_stash_like "$@" git reflog delete --updateref --rewrite "$@" && -- 1.6.5.rc3.8.g8ba5e