diff options
author | Martin von Zweigbergk <martinvonz@gmail.com> | 2013-01-14 21:47:34 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-15 09:38:07 -0800 |
commit | d94c5e2fa24dce13a3dc1ba178f381cb09bb0853 (patch) | |
tree | 97c3a045e9e613d8fd74fce6c52fb6524d9b0459 /git-gui | |
parent | reset $pathspec: no need to discard index (diff) | |
download | tgif-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 'git-gui')
0 files changed, 0 insertions, 0 deletions