diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2019-11-12 17:58:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-13 03:14:16 +0100 |
commit | 4bd0593e0f9149b0e72886c0a2d85bb22fc5404a (patch) | |
tree | ec2d841dcbda86a9e017f688e5d3aea8e3bb536b /t/t5318-commit-graph.sh | |
parent | The first batch post 2.24 cycle (diff) | |
download | git-4bd0593e0f9149b0e72886c0a2d85bb22fc5404a.tar.xz git-4bd0593e0f9149b0e72886c0a2d85bb22fc5404a.zip |
test-tool: use 'read-graph' helper
The 'git commit-graph read' subcommand is used in test scripts to check
that the commit-graph contents match the expected data. Mostly, this
helps check the header information and the list of chunks. Users do not
need this information, so move the functionality to a test helper.
Reported-by: Bryan Turner <bturner@atlassian.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5318-commit-graph.sh')
-rwxr-xr-x | t/t5318-commit-graph.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh index d42b3efe39..798968374f 100755 --- a/t/t5318-commit-graph.sh +++ b/t/t5318-commit-graph.sh @@ -85,7 +85,7 @@ graph_read_expect() { num_commits: $1 chunks: oid_fanout oid_lookup commit_metadata$OPTIONAL EOF - git commit-graph read >output && + test-tool read-graph >output && test_cmp expect output } |