refs.c: move reflog updates into its own function
commit6858c22b9fa430cfe69beed7004c9346abbe239e
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 30 Jul 2014 21:55:37 +0000 (30 14:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Jul 2014 20:40:39 +0000 (31 13:40 -0700)
treee40e500bfc70beb3805254e1de0d3bb75b5d0698
parent909c0d66dfca6fd4a56c7fdb53ccd04696ab61ed
refs.c: move reflog updates into its own function

write_ref_sha1 tries to update the reflog while updating the ref.
Move these reflog changes out into its own function so that we can do the
same thing if we write a sha1 ref differently, for example by writing a ref
to the packed refs file instead.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c