| 1065 | } |
| 1066 | |
| 1067 | int 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 | |
| 1084 | void load_commit_graph_info(struct repository *r, struct commit *item) |
| 1085 | { |