| 27 | static struct tree *trees[MAX_UNPACK_TREES]; |
| 28 | |
| 29 | static int list_tree(struct object_id *oid) |
| 30 | { |
| 31 | struct tree *tree; |
| 32 | |
| 33 | if (nr_trees >= MAX_UNPACK_TREES) |
| 34 | die("I cannot read more than %d trees", MAX_UNPACK_TREES); |
| 35 | tree = repo_parse_tree_indirect(the_repository, oid); |
| 36 | if (!tree) |
| 37 | return -1; |
| 38 | trees[nr_trees++] = tree; |
| 39 | return 0; |
| 40 | } |
| 41 | |
| 42 | static const char * const read_tree_usage[] = { |
| 43 | N_("git read-tree [(-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>)\n" |
no test coverage detected