summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-07-13 23:38:11 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-07-13 23:38:40 -0700
commitbf6d324e7333f62f6aee56ebb886e82e1f49e1ce (patch)
tree946411bff17166b4d30cc7cfec4b8583a05382a7 /commit.c
parentrecur vs recursive: help testing without touching too many stuff. (diff)
parentbuiltin-prune.c: forgot TYPE => OBJ changes. (diff)
downloadtgif-bf6d324e7333f62f6aee56ebb886e82e1f49e1ce.tar.xz
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.
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commit.c b/commit.c
index 6ac3bf7554..77f0ca175c 100644
--- a/commit.c
+++ b/commit.c
@@ -56,7 +56,7 @@ static struct commit *check_commit(struct object *obj,
const unsigned char *sha1,
int quiet)
{
- if (obj->type != TYPE_COMMIT) {
+ if (obj->type != OBJ_COMMIT) {
if (!quiet)
error("Object %s is a %s, not a commit",
sha1_to_hex(sha1), typename(obj->type));
@@ -86,11 +86,11 @@ struct commit *lookup_commit(const unsigned char *sha1)
if (!obj) {
struct commit *ret = alloc_commit_node();
created_object(sha1, &ret->object);
- ret->object.type = TYPE_COMMIT;
+ ret->object.type = OBJ_COMMIT;
return ret;
}
if (!obj->type)
- obj->type = TYPE_COMMIT;
+ obj->type = OBJ_COMMIT;
return check_commit(obj, sha1, 0);
}