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

Function git_test_write_commit_graph_or_die

commit-graph.c:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "chunk-format.h"
30
31void 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" */

Callers 2

cmd_mergeFunction · 0.85
cmd_commitFunction · 0.85

Calls 3

git_env_boolFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected