]> git.ipfire.org Git - thirdparty/git.git/commit
t5318: extract helpers to lib-commit-graph.sh
authorDerrick Stolee <derrickstolee@github.com>
Tue, 1 Mar 2022 19:48:29 +0000 (19:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Mar 2022 20:09:55 +0000 (12:09 -0800)
commit17925e0602983b1a1dbdd418c2fc2c70ca5faf5b
treead9130e0c2ac056fdd6c65a5dea04548222d7434
parentc78c7a959cacf20eb55a694ed9e20921afb306cf
t5318: extract helpers to lib-commit-graph.sh

The graph_git_behavior helper is useful for testing that certain Git
commands behave the same when using the commit-graph and when not using
the commit-graph. Extract it to a new lib-commit-graph.sh file for use
in new test scripts that will split out from t5318.

While doing this extraction, also extract graph_read_expect and the
logic for priming the test_oid_cache.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-commit-graph.sh [new file with mode: 0755]
t/t5318-commit-graph.sh