summaryrefslogtreecommitdiff
path: root/builtin/gc.c
diff options
context:
space:
mode:
authorJon Seymour <jon.seymour@gmail.com>2010-08-21 04:08:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-08-22 06:51:21 (GMT)
commit92e39e44542b34923294fbb45069b8140d19976d (patch)
tree71c75f4cadf4aaea6b0df158b2ef58984db0bdec /builtin/gc.c
parent064ed100b2b3530c4b8c4534aa663d2455b735da (diff)
downloadgit-92e39e44542b34923294fbb45069b8140d19976d.zip
git-92e39e44542b34923294fbb45069b8140d19976d.tar.gz
git-92e39e44542b34923294fbb45069b8140d19976d.tar.bz2
detached-stash: simplify stash_drop
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 stash@{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 assert_stash_ref). Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/gc.c')
0 files changed, 0 insertions, 0 deletions