diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-09-05 22:32:05 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-05 22:32:05 -0700 |
commit | d2c030d4773f1f00165bffc34e2487043df326e7 (patch) | |
tree | f5365eb9b1aeb991ae4644b8bbf6a0c90f0f0f9d | |
parent | Fix whitespace issue in object.c (diff) | |
download | tgif-d2c030d4773f1f00165bffc34e2487043df326e7.tar.xz |
tag.c: whitespace breakages fix
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | tag.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -28,12 +28,12 @@ struct tag *lookup_tag(const unsigned char *sha1) 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) @@ -44,9 +44,9 @@ 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; |