Skip to content

Commit 3e4ca43

Browse files
mhaggergitster
authored andcommitted
show_head_ref(): rename first parameter to "refname"
This is the usual convention. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1d811db commit 3e4ca43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http-backend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,14 +410,14 @@ static void get_info_refs(char *arg)
410410
strbuf_release(&buf);
411411
}
412412

413-
static int show_head_ref(const char *name, const unsigned char *sha1,
413+
static int show_head_ref(const char *refname, const unsigned char *sha1,
414414
int flag, void *cb_data)
415415
{
416416
struct strbuf *buf = cb_data;
417417

418418
if (flag & REF_ISSYMREF) {
419419
unsigned char unused[20];
420-
const char *target = resolve_ref_unsafe(name, unused, 1, NULL);
420+
const char *target = resolve_ref_unsafe(refname, unused, 1, NULL);
421421
const char *target_nons = strip_namespace(target);
422422

423423
strbuf_addf(buf, "ref: %s\n", target_nons);

0 commit comments

Comments
 (0)