MCPcopy Index your code
hub / github.com/git/git / process_object

Function process_object

walker.c:126–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124static struct object_list **process_queue_end = &process_queue;
125
126static 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
151static int process(struct walker *walker, struct object *obj)
152{

Callers 1

loopFunction · 0.70

Calls 6

errorFunction · 0.85
type_nameFunction · 0.85
oid_to_hexFunction · 0.85
process_commitFunction · 0.70
process_treeFunction · 0.70
process_tagFunction · 0.70

Tested by

no test coverage detected