| 106 | void unparse_commit(struct repository *r, const struct object_id *oid); |
| 107 | |
| 108 | static inline int repo_parse_commit_no_graph(struct repository *r, |
| 109 | struct commit *commit) |
| 110 | { |
| 111 | /* |
| 112 | * When the commit has been parsed but its tree wasn't populated then |
| 113 | * this is an indicator that it has been parsed via the commit-graph. |
| 114 | * We cannot read the tree via the commit-graph, as we're explicitly |
| 115 | * told not to use it. We thus have to first un-parse the object so |
| 116 | * that we can re-parse it without the graph. |
| 117 | */ |
| 118 | if (commit->object.parsed && !commit->maybe_tree) |
| 119 | unparse_commit(r, &commit->object.oid); |
| 120 | |
| 121 | return repo_parse_commit_internal(r, commit, 0, 0); |
| 122 | } |
| 123 | |
| 124 | void parse_commit_or_die(struct commit *item); |
| 125 |
no test coverage detected