]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
verify_lock(): return 0/-1 rather than struct ref_lock *
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 22 May 2015 23:34:53 +0000 (01:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2015 19:39:41 +0000 (12:39 -0700)
commita5e2499e5421c88ec2403087597613d60b8f3077
tree03065e5466e0d5c4141fcf88f97c41e3496b7a9a
parentfae46aa0ae5318bbb20f0ef871721bf49e292cea
verify_lock(): return 0/-1 rather than struct ref_lock *

Its return value wasn't conveying any extra information, but it made
the reader wonder whether the ref_lock that it returned might be
different than the one that was passed to it. So change the function
to the traditional "return 0 on success or a negative value on error".

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c