diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-05-01 13:39:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-01 13:39:54 -0700 |
commit | 6d56d4c7dcd667d28aec28498591723c6febea1c (patch) | |
tree | 1d583dce7f1063b570c4d18f223c1ec7b9473836 /commit-graph.h | |
parent | 9b6606f43d55bbf33b9924d16e02e60e1c09660a (diff) | |
parent | 1b4c57fa87e121f155863f898dc39d06cf4a1d99 (diff) | |
download | git-6d56d4c7dcd667d28aec28498591723c6febea1c.tar.gz |
Merge branch 'ds/blame-on-bloom'
"git blame" learns to take advantage of the "changed-paths" Bloom
filter stored in the commit-graph file.
* ds/blame-on-bloom:
test-bloom: check that we have expected arguments
test-bloom: fix some whitespace issues
blame: drop unused parameter from maybe_changed_path
blame: use changed-path Bloom filters
tests: write commit-graph with Bloom filters
revision: complicated pathspecs disable filters
Diffstat (limited to 'commit-graph.h')
-rw-r--r-- | commit-graph.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/commit-graph.h b/commit-graph.h index 183a15ed62..4212766a4f 100644 --- a/commit-graph.h +++ b/commit-graph.h @@ -12,6 +12,15 @@ #define GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD "GIT_TEST_COMMIT_GRAPH_DIE_ON_LOAD" #define GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS "GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS" +/* + * This method is only used to enhance coverage of the commit-graph + * feature in the test suite with the GIT_TEST_COMMIT_GRAPH and + * GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS environment variables. Do not + * call this method oustide of a builtin, and only if you know what + * you are doing! + */ +void git_test_write_commit_graph_or_die(void); + struct commit; struct bloom_filter_settings; |