From: Ronnie Sahlberg Date: Tue, 29 Apr 2014 20:42:07 +0000 (-0700) Subject: refs.c: remove the update_ref_write function X-Git-Tag: v2.2.0-rc0~139^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/04ad6223ec1163163c4f39308149bee852ee245f?hp=04ad6223ec1163163c4f39308149bee852ee245f refs.c: remove the update_ref_write function Since we only call update_ref_write from a single place and we only call it with onerr==QUIET_ON_ERR we can just as well get rid of it and just call write_ref_sha1 directly. This changes the return status for _commit from 1 to -1 on failures when writing to the ref. Eventually we will want _commit to start returning more detailed error conditions than the current simple success/failure. Signed-off-by: Ronnie Sahlberg Reviewed-by: Michael Haggerty Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano ---