]> git.ipfire.org Git - thirdparty/git.git/commit - commit-graph.h
commit-graph: add GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS test flag
authorGarima Singh <garima.singh@microsoft.com>
Mon, 6 Apr 2020 16:59:55 +0000 (16:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Apr 2020 18:08:37 +0000 (11:08 -0700)
commitd5b873c832d832e44523d1d2a9d29afe2b84c84f
treeb86637da80a30b6465fa9ff2e9c7c971ad1b5c0b
parenta759bfa9eeb2a080d7c5c0a3c4096db5438c06bf
commit-graph: add GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS test flag

Add GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS test flag to the test setup suite
in order to toggle writing Bloom filters when running any of the git tests.
If set to true, we will compute and write Bloom filters every time a test
calls `git commit-graph write`, as if the `--changed-paths` option was
passed in.

The test suite passes when GIT_TEST_COMMIT_GRAPH and
GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS are enabled.

Helped-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Garima Singh <garima.singh@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-graph.c
ci/run-build-and-tests.sh
commit-graph.h
t/README
t/t5318-commit-graph.sh
t/t5324-split-commit-graph.sh