index 2b25fc0e1dc53234e38e8ed8fdc1cb99fa4fd84a..b1ab75ff0164b0090f43ba55d2a70239ca2fdb7a 100644 (file)
--- a/tag.c
+++ b/tag.c
const char *tag_type = "tag";
const char *tag_type = "tag";
+struct object *deref_tag(struct object *o)
+{
+ while (o && o->type == tag_type)
+ o = parse_object(((struct tag *)o)->tagged->sha1);
+ return o;
+}
+
struct tag *lookup_tag(const unsigned char *sha1)
{
struct object *obj = lookup_object(sha1);
struct tag *lookup_tag(const unsigned char *sha1)
{
struct object *obj = lookup_object(sha1);