string_list_add_one_ref(): rename first parameter to "refname"
This is the usual convention. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
3e4ca43fd0
commit
d235e994f8
6
notes.c
6
notes.c
@ -918,12 +918,12 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int string_list_add_one_ref(const char *path, const unsigned char *sha1,
|
static int string_list_add_one_ref(const char *refname, const unsigned char *sha1,
|
||||||
int flag, void *cb)
|
int flag, void *cb)
|
||||||
{
|
{
|
||||||
struct string_list *refs = cb;
|
struct string_list *refs = cb;
|
||||||
if (!unsorted_string_list_has_string(refs, path))
|
if (!unsorted_string_list_has_string(refs, refname))
|
||||||
string_list_append(refs, path);
|
string_list_append(refs, refname);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user