refs.c: rework ref_locks by abstracting from underlying struct lock_file
authorBrandon Casey <casey@nrlssc.navy.mil>
Wed, 16 Jan 2008 19:14:30 +0000 (13:14 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jan 2008 23:36:10 +0000 (15:36 -0800)
Instead of calling close_lock_file() and commit_lock_file() directly,
which take a struct lock_file argument, add two new functions:
close_ref() and commit_ref(), which handle calling the previous
lock_file functions and modifying the ref_lock structure.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found