summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-02-05 14:02:05 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-02-05 14:02:05 -0800
commitd11ade701a2451e81a28a4fad35b42a57f273753 (patch)
tree495f2eb4b27b6a5d7b7fa39126e4ed1c4681fb21 /log-tree.c
parentMerge branch 'jh/rlimit-nofile-fallback' into maint (diff)
parentlog: properly handle decorations with chained tags (diff)
downloadtgif-d11ade701a2451e81a28a4fad35b42a57f273753.tar.xz
Merge branch 'bc/log-decoration' into maint
"git log --decorate" did not handle a tag pointed by another tag nicely. * bc/log-decoration: log: properly handle decorations with chained tags
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index 8534d91826..1982631ca4 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -134,6 +134,8 @@ static int add_ref_decoration(const char *refname, const unsigned char *sha1, in
obj = ((struct tag *)obj)->tagged;
if (!obj)
break;
+ if (!obj->parsed)
+ parse_object(obj->sha1);
add_name_decoration(DECORATION_REF_TAG, refname, obj);
}
return 0;