| 29 | #include "chunk-format.h" |
| 30 | |
| 31 | void git_test_write_commit_graph_or_die(struct odb_source *source) |
| 32 | { |
| 33 | int flags = 0; |
| 34 | if (!git_env_bool(GIT_TEST_COMMIT_GRAPH, 0)) |
| 35 | return; |
| 36 | |
| 37 | if (git_env_bool(GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS, 0)) |
| 38 | flags = COMMIT_GRAPH_WRITE_BLOOM_FILTERS; |
| 39 | |
| 40 | if (write_commit_graph_reachable(source, flags, NULL)) |
| 41 | die("failed to write commit-graph under GIT_TEST_COMMIT_GRAPH"); |
| 42 | } |
| 43 | |
| 44 | #define GRAPH_SIGNATURE 0x43475048 /* "CGPH" */ |
| 45 | #define GRAPH_CHUNKID_OIDFANOUT 0x4f494446 /* "OIDF" */ |
no test coverage detected