diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-23 01:43:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-23 01:43:50 -0700 |
commit | 44ee247f8db243fbd3c50fee0fe35696ed7da8d3 (patch) | |
tree | 3bab3e93cd2752fd0e45d5b982242addbf20c18d /refs.c | |
parent | 212fa1d96040a01054d6bd92ee2bb74fe7071d33 (diff) | |
parent | de435ac0f633b1f68dba2970cb7fa019171e40fe (diff) | |
download | git-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 : |