• Jon Seymour's avatar
    detached-stash: simplify stash_drop · 92e39e44
    Jon Seymour authored
    Previously, git stash drop would fail noisily while executing git reflog
    delete if the specified revision was not a stash reference.
    Now, git stash drop fails with an error message which more precisely
    indicates the reason for failure.
    Furthermore, git stash drop will now fail with a non-zero status code
    if [email protected]{n} specifies a stash log entry that does not actually exist.
    This change in behaviour is achieved by delegating argument parsing
    to the common parse_flags_and_rev() function (via a call to
    Signed-off-by: Jon Seymour's avatarJon Seymour <[email protected]>
    Signed-off-by: default avatarJunio C Hamano <[email protected]>
git-stash.sh 10.6 KB