diff options
Diffstat (limited to 't/lib-commit-graph.sh')
| -rwxr-xr-x | t/lib-commit-graph.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/t/lib-commit-graph.sh b/t/lib-commit-graph.sh index 07e12b9d2f..5d79e1a4e9 100755 --- a/t/lib-commit-graph.sh +++ b/t/lib-commit-graph.sh @@ -37,11 +37,21 @@ graph_read_expect() { OPTIONAL=" $2" NUM_CHUNKS=$((3 + $(echo "$2" | wc -w))) fi + GENERATION_VERSION=2 + if test -n "$3" + then + GENERATION_VERSION=$3 + fi + OPTIONS= + if test $GENERATION_VERSION -gt 1 + then + OPTIONS=" read_generation_data" + fi cat >expect <<- EOF header: 43475048 1 $(test_oid oid_version) $NUM_CHUNKS 0 num_commits: $1 chunks: oid_fanout oid_lookup commit_metadata$OPTIONAL - options: + options:$OPTIONS EOF test-tool read-graph >output && test_cmp expect output |
