Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
string_list_add_one_ref(): rename first parameter to "refname"
author
Michael Haggerty
<mhagger@alum.mit.edu>
Sat, 25 May 2013 09:08:20 +0000
(11:08 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 2 Jun 2013 22:28:47 +0000
(15:28 -0700)
This is the usual convention.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
3e4ca43
)
diff --git
a/notes.c
b/notes.c
index f63fd572d6db125559e68556a8fc152a53700644..fa7cdf7dd2eadcd757936f6eab50caa6fd92fb8b 100644
(file)
--- a/
notes.c
+++ b/
notes.c
@@
-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;
}