Skip to content

Commit

Permalink
string_list_add_one_ref(): rename first parameter to "refname"
Browse files Browse the repository at this point in the history
This is the usual convention.

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 Jun 2, 2013
1 parent 3e4ca43 commit d235e99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notes.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,12 +918,12 @@ int combine_notes_cat_sort_uniq(unsigned char *cur_sha1,
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)
{
struct string_list *refs = cb;
if (!unsorted_string_list_has_string(refs, path))
string_list_append(refs, path);
if (!unsorted_string_list_has_string(refs, refname))
string_list_append(refs, refname);
return 0;
}

Expand Down

0 comments on commit d235e99

Please sign in to comment.