Merge branch 'lt/unitype' into js/c-merge-recursive

* lt/unitype:
  builtin-prune.c: forgot TYPE => OBJ changes.
  Remove TYPE_* constant macros and use object_type enums consistently.
This commit is contained in:
Junio C Hamano
2006-07-13 23:38:11 -07:00
24 changed files with 91 additions and 96 deletions

View File

@ -1501,7 +1501,7 @@ static struct commit *get_ref(const char *ref)
if (get_sha1(ref, sha1))
die("Could not resolve ref '%s'", ref);
object = deref_tag(parse_object(sha1), ref, strlen(ref));
if (object->type != TYPE_COMMIT)
if (object->type != OBJ_COMMIT)
return NULL;
if (parse_commit((struct commit *)object))
die("Could not parse commit '%s'", sha1_to_hex(object->sha1));