verify_lock(): report errors via a strbuf
commit33ffc176d65e1e98e1eea262dc7827830c33c56d
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 22 May 2015 23:34:55 +0000 (23 01:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2015 22:57:47 +0000 (27 15:57 -0700)
tree421595cebc4459822a0da433d6c82741aec527f6
parentf41d6329704a8c3f7286f52c3589d381ac0bc79d
verify_lock(): report errors via a strbuf

Instead of writing error messages directly to stderr, write them to
a "strbuf *err".  The caller, lock_ref_sha1_basic(), uses this error
reporting convention with all the other callees, and reports its
error this way to its callers.

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