summaryrefslogtreecommitdiff
path: root/http-backend.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2013-05-25 11:08:19 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-02 15:28:47 -0700
commit3e4ca43fd0ea0f6a150de3be096b52954d64f523 (patch)
tree3c5b8be2284195c3b988656620420af6472780f2 /http-backend.c
parent1d811dbd04afc9fd4e59d1a1a2c090abb835d55f (diff)
downloadgit-3e4ca43fd0ea0f6a150de3be096b52954d64f523.tar.gz
show_head_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 'http-backend.c')
-rw-r--r--http-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-backend.c b/http-backend.c
index 313583562f..0324417297 100644
--- a/http-backend.c
+++ b/http-backend.c
@@ -410,14 +410,14 @@ static void get_info_refs(char *arg)
strbuf_release(&buf);
}
-static int show_head_ref(const char *name, const unsigned char *sha1,
+static int show_head_ref(const char *refname, const unsigned char *sha1,
int flag, void *cb_data)
{
struct strbuf *buf = cb_data;
if (flag & REF_ISSYMREF) {
unsigned char unused[20];
- const char *target = resolve_ref_unsafe(name, unused, 1, NULL);
+ const char *target = resolve_ref_unsafe(refname, unused, 1, NULL);
const char *target_nons = strip_namespace(target);
strbuf_addf(buf, "ref: %s\n", target_nons);