Skip to content

Commit

Permalink
mark_complete(): remove unneeded arguments
Browse files Browse the repository at this point in the history
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 <mhagger@alum.mit.edu>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed May 25, 2015
1 parent f8ee4d8 commit 6e20a51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fetch-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ static int find_common(struct fetch_pack_args *args,

static struct commit_list *complete;

static int mark_complete(const char *refname, const unsigned char *sha1, int flag, void *cb_data)
static int mark_complete(const unsigned char *sha1)
{
struct object *o = parse_object(sha1);

Expand All @@ -493,7 +493,7 @@ static int mark_complete(const char *refname, const unsigned char *sha1, int fla
static int mark_complete_oid(const char *refname, const struct object_id *oid,
int flag, void *cb_data)
{
return mark_complete(refname, oid->hash, flag, cb_data);
return mark_complete(oid->hash);
}

static void mark_recent_complete_commits(struct fetch_pack_args *args,
Expand Down Expand Up @@ -573,7 +573,7 @@ static void filter_refs(struct fetch_pack_args *args,

static void mark_alternate_complete(const struct ref *ref, void *unused)
{
mark_complete(NULL, ref->old_sha1, 0, NULL);
mark_complete(ref->old_sha1);
}

static int everything_local(struct fetch_pack_args *args,
Expand Down

0 comments on commit 6e20a51

Please sign in to comment.