diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2013-05-25 11:08:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-02 15:28:47 -0700 |
commit | d235e994f893fddd7808a4f5af879fd718563649 (patch) | |
tree | 5b96fb1ce01148b0d8f361280b49bf7426cea416 /notes.c | |
parent | 3e4ca43fd0ea0f6a150de3be096b52954d64f523 (diff) | |
download | git-d235e994f893fddd7808a4f5af879fd718563649.tar.gz |
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>
Diffstat (limited to 'notes.c')
-rw-r--r-- | notes.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -918,12 +918,12 @@ out: 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; } |