]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs: split log_ref_write logic into log_ref_setup
authorErick Mattos <erick.mattos@gmail.com>
Sat, 22 May 2010 00:28:36 +0000 (21:28 -0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2010 18:17:46 +0000 (11:17 -0700)
commit859c30175f7d8f64f61968cb3ece7aca9218b314
tree09c38d76cb9cd4593987353c528ac4168cec66d0
parentfeb98d134289527eeb9d1fd11d8c284819a0aa1d
refs: split log_ref_write logic into log_ref_setup

Separation of the logic for testing and preparing the reflogs from
function log_ref_write to a new non static new function: log_ref_setup.

This allows to be performed from outside the first all reasonable checks
and procedures for writing reflogs.

Signed-off-by: Erick Mattos <erick.mattos@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h