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>
Michael Haggerty committed
Sep 4, 2016 at 18:08 UTC
fcc42ea0c92e357da40f7cbc598152e2f8dfe083
1 file changed
+4
-2
refs/files-backend.c
+4
-2
@@ -3401,7 +3401,8 @@ static int split_head_update(struct ref_update *update,
3401
* Note that the new update will itself be subject to splitting when
3402
* the iteration gets to it.
3403
*/
3404
-static int split_symref_update(struct ref_update *update,
3404
+static int split_symref_update(struct files_ref_store *refs,
3405
+ struct ref_update *update,
3406
const char *referent,
3407
struct ref_transaction *transaction,
3408
struct string_list *affected_refnames,
@@ -3562,7 +3563,8 @@ static int lock_ref_for_update(struct files_ref_store *refs,
3563
* of processing the split-off update, so we
3564
* don't have to do it here.
3565
*/
3565
- ret = split_symref_update(update, referent.buf, transaction,
3566
+ ret = split_symref_update(refs, update,
3567
+ referent.buf, transaction,
3568
affected_refnames, err);
3569
if (ret)
3570
return ret;