summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-05-25 11:08:20 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-02 15:28:47 -0700
commitd235e994f893fddd7808a4f5af879fd718563649 (patch)
tree5b96fb1ce01148b0d8f361280b49bf7426cea416
parent3e4ca43fd0ea0f6a150de3be096b52954d64f523 (diff)
downloadgit-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>
-rw-r--r--notes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/notes.c b/notes.c
index f63fd572d6..fa7cdf7dd2 100644
--- a/notes.c
+++ b/notes.c
@@ -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;
}