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

Function parse_commit_in_graph

commit-graph.c:1067–1082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067int parse_commit_in_graph(struct repository *r, struct commit *item)
1068{
1069 static int checked_env = 0;
1070 struct commit_graph *g;
1071
1072 if (!checked_env &&
1073 git_env_bool(GIT_TEST_COMMIT_GRAPH_DIE_ON_PARSE, 0))
1074 die("dying as requested by the '%s' variable on commit-graph parse!",
1075 GIT_TEST_COMMIT_GRAPH_DIE_ON_PARSE);
1076 checked_env = 1;
1077
1078 g = prepare_commit_graph(r);
1079 if (!g)
1080 return 0;
1081 return parse_commit_in_graph_one(g, item);
1082}
1083
1084void load_commit_graph_info(struct repository *r, struct commit *item)
1085{

Callers 3

Calls 4

git_env_boolFunction · 0.85
prepare_commit_graphFunction · 0.85
dieFunction · 0.70

Tested by 2