Re: [PATCH 12/33] peel_object(): give more specific information in return value
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 15, 2013, 17:38 UTC
- Message-ID
- <7vhaj7wv77.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1365944088-10588-13-git-send-email-mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 6 quoted lines
> Instead of just returning a success/failure bit, return an enumeration > value that explains the reason for any failure. This will come in > handy shortly. > > Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> > ---
This is a valid rewrite because all existing callers check if the return value is 0 and does not check the error code against -1.
Looking good so far.