split_symref_update(): add a files_ref_store argument
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7eb27cdfe6
commit
fcc42ea0c9
@ -3401,7 +3401,8 @@ static int split_head_update(struct ref_update *update,
|
|||||||
* Note that the new update will itself be subject to splitting when
|
* Note that the new update will itself be subject to splitting when
|
||||||
* the iteration gets to it.
|
* the iteration gets to it.
|
||||||
*/
|
*/
|
||||||
static int split_symref_update(struct ref_update *update,
|
static int split_symref_update(struct files_ref_store *refs,
|
||||||
|
struct ref_update *update,
|
||||||
const char *referent,
|
const char *referent,
|
||||||
struct ref_transaction *transaction,
|
struct ref_transaction *transaction,
|
||||||
struct string_list *affected_refnames,
|
struct string_list *affected_refnames,
|
||||||
@ -3562,7 +3563,8 @@ static int lock_ref_for_update(struct files_ref_store *refs,
|
|||||||
* of processing the split-off update, so we
|
* of processing the split-off update, so we
|
||||||
* don't have to do it here.
|
* don't have to do it here.
|
||||||
*/
|
*/
|
||||||
ret = split_symref_update(update, referent.buf, transaction,
|
ret = split_symref_update(refs, update,
|
||||||
|
referent.buf, transaction,
|
||||||
affected_refnames, err);
|
affected_refnames, err);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user