summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-05-23 01:43:50 -0700
committerJunio C Hamano <gitster@pobox.com>2009-05-23 01:43:50 -0700
commit44ee247f8db243fbd3c50fee0fe35696ed7da8d3 (patch)
tree3bab3e93cd2752fd0e45d5b982242addbf20c18d /refs.c
parent212fa1d96040a01054d6bd92ee2bb74fe7071d33 (diff)
parentde435ac0f633b1f68dba2970cb7fa019171e40fe (diff)
downloadgit-44ee247f8db243fbd3c50fee0fe35696ed7da8d3.tar.gz
Merge branch 'fc/decorate-tag'
* fc/decorate-tag: Prettify log decorations even more Change prettify_ref to prettify_refname
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/refs.c b/refs.c
index bb4bdc9eac..45ad55693d 100644
--- a/refs.c
+++ b/refs.c
@@ -751,9 +751,8 @@ int check_ref_format(const char *ref)
}
}
-const char *prettify_ref(const struct ref *ref)
+const char *prettify_refname(const char *name)
{
- const char *name = ref->name;
return name + (
!prefixcmp(name, "refs/heads/") ? 11 :
!prefixcmp(name, "refs/tags/") ? 10 :