Skip to content

Commit 65385ef

Browse files
mhaggergitster
authored andcommitted
fetch-pack.c: rename some parameters from "path" to "refname"
The parameters denote reference names, which are no longer 1:1 with filesystem paths. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5b05795 commit 65385ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

builtin/fetch-pack.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ static void rev_list_push(struct commit *commit, int mark)
5858
}
5959
}
6060

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

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

6868
return 0;
6969
}
7070

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

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

494494
static struct commit_list *complete;
495495

496-
static int mark_complete(const char *path, const unsigned char *sha1, int flag, void *cb_data)
496+
static int mark_complete(const char *refname, const unsigned char *sha1, int flag, void *cb_data)
497497
{
498498
struct object *o = parse_object(sha1);
499499

0 commit comments

Comments
 (0)