Ori Avtalion wrote: > 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@xxxxxxxxxxxxx> > --- > > Thomas, I added handling for the 'git stash apply <stash>' case based > on your reminder, and also changed the error messages related to it. > > All of the stash tests pass, as before. Acked-by: Thomas Rast <trast@xxxxxxxxxxxxxxx> -- Thomas Rast trast@{inf,student}.ethz.ch -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html