/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
move setting of object->type to alloc_* functions
[git/git.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
7b07921
..
79552c7
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-40,7
+40,7
@@
struct tag *lookup_tag(const unsigned char *sha1)
{
struct object *obj = lookup_object(sha1);
if (!obj)
- return create_object(sha1,
OBJ_TAG,
alloc_tag_node());
+ return create_object(sha1, alloc_tag_node());
if (!obj->type)
obj->type = OBJ_TAG;
if (obj->type != OBJ_TAG) {