summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Ori Avtalion <ori@avtalion.name>2009-08-11 14:12:13 +0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-08-14 19:48:45 -0700
commit5fd448f1142c61da31b28c74d7d340938ab0e01d (patch)
tree3da959b86fb5aa56aa9940332c99a1114c824ead /contrib
parentMerge branch 'maint' (diff)
downloadtgif-5fd448f1142c61da31b28c74d7d340938ab0e01d.tar.xz
git stash: Give friendlier errors when there is nothing to apply
The change makes sure a stash (given or default) exists before checking if the working tree is dirty. If the default stash is requested, the old message was scary and included a 'fatal' error from rev-parse: fatal: Needed a single revision : no valid stashed state found It is replaced with a friendlier 'Nothing to apply' error, similar to 'git stash branch'. If a specific stash is specified, the 'Needed a single revision' errors from rev-parse are suppressed. Signed-off-by: Ori Avtalion <ori@avtalion.name> Acked-by: Thomas Rast <trast@student.ethz.ch> Acked-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions