MCPcopy Index your code
hub / github.com/git/git / repo_parse_commit_no_graph

Function repo_parse_commit_no_graph

commit.h:108–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106void unparse_commit(struct repository *r, const struct object_id *oid);
107
108static 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
124void parse_commit_or_die(struct commit *item);
125

Callers 3

write_graph_chunk_dataFunction · 0.85
close_reachableFunction · 0.85
copy_oids_to_commitsFunction · 0.85

Calls 2

unparse_commitFunction · 0.85

Tested by

no test coverage detected