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