summaryrefslogtreecommitdiff
path: root/branch.c
diff options
context:
space:
mode:
authorLibravatar Ronnie Sahlberg <sahlberg@google.com>2014-04-29 13:42:07 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-09-03 10:04:17 -0700
commit04ad6223ec1163163c4f39308149bee852ee245f (patch)
tree0f5078ca8e36b079d3fc69d7f6f3290144cf7c36 /branch.c
parentrefs.c: remove the update_ref_lock function (diff)
downloadtgif-04ad6223ec1163163c4f39308149bee852ee245f.tar.xz
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 <sahlberg@google.com> Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'branch.c')
0 files changed, 0 insertions, 0 deletions