Skip to content

Commit c38cd1c

Browse files
mhaggergitster
authored andcommitted
rev_list_insert_ref(): 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 b1b49c6 commit c38cd1c

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
@@ -60,7 +60,7 @@ static void rev_list_push(struct commit *commit, int mark)
6060
}
6161
}
6262

63-
static int rev_list_insert_ref(const char *refname, const unsigned char *sha1, int flag, void *cb_data)
63+
static int rev_list_insert_ref(const char *refname, const unsigned char *sha1)
6464
{
6565
struct object *o = deref_tag(parse_object(sha1), refname, 0);
6666

@@ -73,7 +73,7 @@ static int rev_list_insert_ref(const char *refname, const unsigned char *sha1, i
7373
static int rev_list_insert_ref_oid(const char *refname, const struct object_id *oid,
7474
int flag, void *cb_data)
7575
{
76-
return rev_list_insert_ref(refname, oid->hash, flag, cb_data);
76+
return rev_list_insert_ref(refname, oid->hash);
7777
}
7878

7979
static int clear_marks(const char *refname, const struct object_id *oid,
@@ -233,7 +233,7 @@ static void send_request(struct fetch_pack_args *args,
233233

234234
static void insert_one_alternate_ref(const struct ref *ref, void *unused)
235235
{
236-
rev_list_insert_ref(NULL, ref->old_sha1, 0, NULL);
236+
rev_list_insert_ref(NULL, ref->old_sha1);
237237
}
238238

239239
#define INITIAL_FLUSH 16

0 commit comments

Comments
 (0)