| 61 | } |
| 62 | |
| 63 | int cmd__dump_cache_tree(int ac UNUSED, const char **av UNUSED) |
| 64 | { |
| 65 | struct index_state istate; |
| 66 | struct cache_tree *another = cache_tree(); |
| 67 | int ret; |
| 68 | |
| 69 | setup_git_directory(the_repository); |
| 70 | if (repo_read_index(the_repository) < 0) |
| 71 | die("unable to read index file"); |
| 72 | istate = *the_repository->index; |
| 73 | istate.cache_tree = another; |
| 74 | cache_tree_update(&istate, WRITE_TREE_DRY_RUN); |
| 75 | ret = dump_cache_tree(the_repository->index->cache_tree, another, ""); |
| 76 | cache_tree_free(&another); |
| 77 | |
| 78 | return ret; |
| 79 | } |
nothing calls this directly
no test coverage detected