summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-02-14 05:50:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-14 23:26:15 (GMT)
commit10dee40ed3f6f091be271b45191a40aa560f33bf (patch)
tree655940a3ade60024bb1ef835d81bdb606ce086ea
parentc409d108b857799ae699654d2fc33b063c9aef9d (diff)
downloadgit-10dee40ed3f6f091be271b45191a40aa560f33bf.zip
git-10dee40ed3f6f091be271b45191a40aa560f33bf.tar.gz
git-10dee40ed3f6f091be271b45191a40aa560f33bf.tar.bz2
files-backend: drop refs parameter from split_symref_update()
This parameter was added in fcc42ea0c9 (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>
-rw-r--r--refs/files-backend.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index dd8abe9..ef053f7 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -2254,8 +2254,7 @@ static int split_head_update(struct ref_update *update,
* Note that the new update will itself be subject to splitting when
* the iteration gets to it.
*/
-static int split_symref_update(struct files_ref_store *refs,
- struct ref_update *update,
+static int split_symref_update(struct ref_update *update,
const char *referent,
struct ref_transaction *transaction,
struct string_list *affected_refnames,
@@ -2449,7 +2448,7 @@ static int lock_ref_for_update(struct files_ref_store *refs,
* of processing the split-off update, so we
* don't have to do it here.
*/
- ret = split_symref_update(refs, update,
+ ret = split_symref_update(update,
referent.buf, transaction,
affected_refnames, err);
if (ret)