Re: exit code from git reset

2012-12-09 Thread Martin von Zweigbergk
On Sun, Dec 9, 2012 at 3:04 PM, Junio C Hamano wrote: > Martin von Zweigbergk writes: > >> "git reset" currently returns 0 (if successful) while "git reset >> $pathspec" returns 0 iff the index matches HEAD after resetting (on >> all paths, not just those matching $pathspec). > > So in short, you

Re: exit code from git reset

2012-12-09 Thread Junio C Hamano
Martin von Zweigbergk writes: > "git reset" currently returns 0 (if successful) while "git reset > $pathspec" returns 0 iff the index matches HEAD after resetting (on > all paths, not just those matching $pathspec). So in short, you observed that either of them reports with its exit code if the