Skip to content

Commit 10dee40

Browse files
peffgitster
authored andcommitted
files-backend: drop refs parameter from split_symref_update()
This parameter was added in fcc42ea (split_symref_update(): add a files_ref_store argument, 2016-09-04) without comment, but never used. The splitting is purely mechanical, and doesn't depend on the particular ref-store. Let's drop this parameter in the name of simplicity. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent c409d10 commit 10dee40

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

refs/files-backend.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,8 +2254,7 @@ static int split_head_update(struct ref_update *update,
22542254
* Note that the new update will itself be subject to splitting when
22552255
* the iteration gets to it.
22562256
*/
2257-
static int split_symref_update(struct files_ref_store *refs,
2258-
struct ref_update *update,
2257+
static int split_symref_update(struct ref_update *update,
22592258
const char *referent,
22602259
struct ref_transaction *transaction,
22612260
struct string_list *affected_refnames,
@@ -2449,7 +2448,7 @@ static int lock_ref_for_update(struct files_ref_store *refs,
24492448
* of processing the split-off update, so we
24502449
* don't have to do it here.
24512450
*/
2452-
ret = split_symref_update(refs, update,
2451+
ret = split_symref_update(update,
24532452
referent.buf, transaction,
24542453
affected_refnames, err);
24552454
if (ret)

0 commit comments

Comments
 (0)