Skip to content

Commit

Permalink
show_head_ref(): rename first parameter to "refname"
Browse files Browse the repository at this point in the history
This is the usual convention.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Jun 2, 2013
1 parent 1d811db commit 3e4ca43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e4ca43

Please sign in to comment.