projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement a test for git-fetch-pack/git-upload-pack
[git.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
2b25fc0
..
b1ab75f
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-3,6
+3,13
@@
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);