Browse Source

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>
maint
Michael Haggerty 12 years ago committed by Junio C Hamano
parent
commit
3e4ca43fd0
  1. 4
      http-backend.c

4
http-backend.c

@ -410,14 +410,14 @@ static void get_info_refs(char *arg) @@ -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);

Loading…
Cancel
Save