summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55b4e9e)
raw | patch | inline | side by side (parent: 55b4e9e)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 6 Sep 2010 05:32:05 +0000 (22:32 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 6 Sep 2010 05:32:05 +0000 (22:32 -0700) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tag.c | patch | blob | history |
index 4470d2bf78e1fbb00d00e487f41daa4373cf48e1..f2dd1d0e03c28bc7c73639b4d62bb2ba951648f1 100644 (file)
--- a/tag.c
+++ b/tag.c
return create_object(sha1, OBJ_TAG, alloc_tag_node());
if (!obj->type)
obj->type = OBJ_TAG;
- if (obj->type != OBJ_TAG) {
- error("Object %s is a %s, not a tag",
- sha1_to_hex(sha1), typename(obj->type));
- return NULL;
- }
- return (struct tag *) obj;
+ if (obj->type != OBJ_TAG) {
+ error("Object %s is a %s, not a tag",
+ sha1_to_hex(sha1), typename(obj->type));
+ return NULL;
+ }
+ return (struct tag *) obj;
}
int parse_tag_buffer(struct tag *item, void *data, unsigned long size)
char type[20];
const char *start = data;
- if (item->object.parsed)
- return 0;
- item->object.parsed = 1;
+ if (item->object.parsed)
+ return 0;
+ item->object.parsed = 1;
if (size < 64)
return -1;