Skip to content

Commit

Permalink
fetch-pack.c: rename some parameters from "path" to "refname"
Browse files Browse the repository at this point in the history
The parameters denote reference names, which are no longer 1:1 with
filesystem paths.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Feb 13, 2012
1 parent 5b05795 commit 65385ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions builtin/fetch-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ static void rev_list_push(struct commit *commit, int mark)
}
}

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

if (o && o->type == OBJ_COMMIT)
rev_list_push((struct commit *)o, SEEN);

return 0;
}

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

if (o && o->type == OBJ_COMMIT)
clear_commit_marks((struct commit *)o,
Expand Down Expand Up @@ -493,7 +493,7 @@ static int find_common(int fd[2], unsigned char *result_sha1,

static struct commit_list *complete;

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

Expand Down

0 comments on commit 65385ef

Please sign in to comment.