1277
}
1278
1279
static struct object_list **process_blob(struct blob *blob,
1280
- struct object_list **p,
1281
- struct name_path *path,
1282
- const char *name)
1280
+ struct object_list **p)
1281
{
1282
struct object *obj = &blob->object;
1283
1291
}
1292
1293
static struct object_list **process_tree(struct tree *tree,
1296
- struct object_list **p,
1297
- struct name_path *path,
1298
- const char *name)
1294
+ struct object_list **p)
1295
{
1296
struct object *obj = &tree->object;
1297
struct tree_desc desc;
1298
struct name_entry entry;
1303
- struct name_path me;
1299
1300
obj->flags |= LOCAL;
1301
1305
die("bad tree object %s", oid_to_hex(&obj->oid));
1306
1307
obj->flags |= SEEN;
1313
- name = xstrdup(name);
1308
p = add_one_object(obj, p);
1315
- me.up = path;
1316
- me.elem = name;
1317
- me.elem_len = strlen(name);
1309
1310
init_tree_desc(&desc, tree->buffer, tree->size);
1311
1312
while (tree_entry(&desc, &entry))
1313
switch (object_type(entry.mode)) {
1314
case OBJ_TREE:
1324
- p = process_tree(lookup_tree(entry.sha1), p, &me, name);
1315
+ p = process_tree(lookup_tree(entry.sha1), p);
1316
break;
1317
case OBJ_BLOB:
1327
- p = process_blob(lookup_blob(entry.sha1), p, &me, name);
1318
+ p = process_blob(lookup_blob(entry.sha1), p);
1319
break;
1320
default:
1321
/* Subproject commit - not in this repository */
1334
int count = 0;
1335
1336
while ((commit = get_revision(revs)) != NULL) {
1346
- p = process_tree(commit->tree, p, NULL, "");
1337
+ p = process_tree(commit->tree, p);
1338
commit->object.flags |= LOCAL;
1339
if (!(commit->object.flags & UNINTERESTING))
1340
count += add_send_request(&commit->object, lock);
1353
continue;
1354
}
1355
if (obj->type == OBJ_TREE) {
1365
- p = process_tree((struct tree *)obj, p, NULL, name);
1356
+ p = process_tree((struct tree *)obj, p);
1357
continue;
1358
}
1359
if (obj->type == OBJ_BLOB) {
1369
- p = process_blob((struct blob *)obj, p, NULL, name);
1360
+ p = process_blob((struct blob *)obj, p);
1361
continue;
1362
}
1363
die("unknown pending object %s (%s)", oid_to_hex(&obj->oid), name);