write_ref_to_lockfile(): new function, extracted from write_ref_sha1()
commit1d455231a0f823dc75cd5c7e32b818a4dc3ec020
authorMichael Haggerty <mhagger@alum.mit.edu>
Sun, 10 May 2015 02:45:32 +0000 (10 04:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 May 2015 04:25:26 +0000 (12 21:25 -0700)
tree60d7d3faaafe205e062ba43a441e9ab368e3c28c
parent71ad0505cca7d3a87f72c46dc4651ea3089ceecf
write_ref_to_lockfile(): new function, extracted from write_ref_sha1()

This is the first step towards separating the checking and writing of
the new reference value to committing the change.

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