summaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
authorLibravatar Martin von Zweigbergk <martinvonz@gmail.com>2013-01-14 21:47:34 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-15 09:38:07 -0800
commitd94c5e2fa24dce13a3dc1ba178f381cb09bb0853 (patch)
tree97c3a045e9e613d8fd74fce6c52fb6524d9b0459 /tag.c
parentreset $pathspec: no need to discard index (diff)
downloadtgif-d94c5e2fa24dce13a3dc1ba178f381cb09bb0853.tar.xz
reset $pathspec: exit with code 0 if successful
"git reset $pathspec" currently exits with a non-zero exit code if the worktree is dirty after resetting, which is inconsistent with reset without pathspec, and it makes it harder to know whether the command really failed. Change it to exit with code 0 regardless of whether the worktree is dirty so that non-zero indicates an error. This makes the 4 "disambiguation" test cases in t7102 clearer since they all used to "fail", 3 of which "failed" due to changes in the work tree. Now only the ambiguous one fails. Signed-off-by: Martin von Zweigbergk <martinvonz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tag.c')
0 files changed, 0 insertions, 0 deletions