Skip to content

Commit 6e20a51

Browse files
mhaggergitster
authored andcommitted
mark_complete(): remove unneeded arguments
Now that the function is not being used as an each_ref_sha1_fn, we can delete the unused arguments in its signature. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: brian m. carlson <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f8ee4d8 commit 6e20a51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fetch-pack.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ static int find_common(struct fetch_pack_args *args,
469469

470470
static struct commit_list *complete;
471471

472-
static int mark_complete(const char *refname, const unsigned char *sha1, int flag, void *cb_data)
472+
static int mark_complete(const unsigned char *sha1)
473473
{
474474
struct object *o = parse_object(sha1);
475475

@@ -493,7 +493,7 @@ static int mark_complete(const char *refname, const unsigned char *sha1, int fla
493493
static int mark_complete_oid(const char *refname, const struct object_id *oid,
494494
int flag, void *cb_data)
495495
{
496-
return mark_complete(refname, oid->hash, flag, cb_data);
496+
return mark_complete(oid->hash);
497497
}
498498

499499
static void mark_recent_complete_commits(struct fetch_pack_args *args,
@@ -573,7 +573,7 @@ static void filter_refs(struct fetch_pack_args *args,
573573

574574
static void mark_alternate_complete(const struct ref *ref, void *unused)
575575
{
576-
mark_complete(NULL, ref->old_sha1, 0, NULL);
576+
mark_complete(ref->old_sha1);
577577
}
578578

579579
static int everything_local(struct fetch_pack_args *args,

0 commit comments

Comments
 (0)