| 124 | static struct object_list **process_queue_end = &process_queue; |
| 125 | |
| 126 | static int process_object(struct walker *walker, struct object *obj) |
| 127 | { |
| 128 | if (obj->type == OBJ_COMMIT) { |
| 129 | if (process_commit(walker, (struct commit *)obj)) |
| 130 | return -1; |
| 131 | return 0; |
| 132 | } |
| 133 | if (obj->type == OBJ_TREE) { |
| 134 | if (process_tree(walker, (struct tree *)obj)) |
| 135 | return -1; |
| 136 | return 0; |
| 137 | } |
| 138 | if (obj->type == OBJ_BLOB) { |
| 139 | return 0; |
| 140 | } |
| 141 | if (obj->type == OBJ_TAG) { |
| 142 | if (process_tag(walker, (struct tag *)obj)) |
| 143 | return -1; |
| 144 | return 0; |
| 145 | } |
| 146 | return error("Unable to determine requirements " |
| 147 | "of type %s for %s", |
| 148 | type_name(obj->type), oid_to_hex(&obj->oid)); |
| 149 | } |
| 150 | |
| 151 | static int process(struct walker *walker, struct object *obj) |
| 152 | { |
no test coverage detected