]> git.ipfire.org Git - thirdparty/git.git/blame - t/t6004-rev-list-path-optim.sh
git-rev-list --bisect: optimization
[thirdparty/git.git] / t / t6004-rev-list-path-optim.sh
CommitLineData
57c7d9a7
AR
1#!/bin/sh
2
3test_description='git-rev-list trivial path optimization test'
4
5. ./test-lib.sh
6
7test_expect_success setup '
8echo Hello > a &&
9git add a &&
10git commit -m "Initial commit" a
11'
12
13test_expect_success path-optimization '
14 commit=$(echo "Unchanged tree" | git-commit-tree "HEAD^{tree}" -p HEAD) &&
15 test $(git-rev-list $commit | wc -l) = 2 &&
16 test $(git-rev-list $commit -- . | wc -l) = 1
17'
18
19test_done