@matheusbsbs / matheus-bagliano / commits / de435ac0f6
Fork 0

Prettify log decorations even more

"tag: v1.6.2.5" looks much better than "tag: refs/tags/v1.6.2.5". Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed May 14, 2009 at 00:32 UTC de435ac0f633b1f68dba2970cb7fa019171e40fe
2 files changed +4 -3
log-tree.c
+1
@@ -25,6 +25,7 @@ static int add_ref_decoration(const char *refname, const unsigned char *sha1, in
25 struct object *obj = parse_object(sha1);
26 if (!obj)
27 return 0;
28 + refname = prettify_refname(refname);
29 add_name_decoration("", refname, obj);
30 while (obj->type == OBJ_TAG) {
31 obj = ((struct tag *)obj)->tagged;
t/t4013/diff.log_--decorate_--all
+3 -3
@@ -1,12 +1,12 @@
1 $ git log --decorate --all
2 -commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (refs/heads/master)
2 +commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (master)
3 Merge: 9a6d494 c7a2ab9
4 Author: A U Thor <author@example.com>
5 Date: Mon Jun 26 00:04:00 2006 +0000
6
7 Merge branch 'side'
8
9 -commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a (refs/heads/side)
9 +commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a (side)
10 Author: A U Thor <author@example.com>
11 Date: Mon Jun 26 00:03:00 2006 +0000
12
@@ -26,7 +26,7 @@ Date: Mon Jun 26 00:01:00 2006 +0000
26
27 This is the second commit.
28
29 -commit 444ac553ac7612cc88969031b02b3767fb8a353a (refs/heads/initial)
29 +commit 444ac553ac7612cc88969031b02b3767fb8a353a (initial)
30 Author: A U Thor <author@example.com>
31 Date: Mon Jun 26 00:00:00 2006 +0000
32