Merge branch 'rn/sparse-describe'
"git describe --dirty" learns to work better with sparse-index. * rn/sparse-describe: describe: enable sparse index for describe
This commit is contained in:
@ -43,6 +43,7 @@ test_expect_success 'setup repo and indexes' '
|
||||
done &&
|
||||
|
||||
git sparse-checkout init --cone &&
|
||||
git tag -a v1.0 -m "Final" &&
|
||||
git sparse-checkout set $SPARSE_CONE &&
|
||||
git checkout -b wide $OLD_COMMIT &&
|
||||
|
||||
@ -126,5 +127,7 @@ test_perf_on_all git update-index --add --remove $SPARSE_CONE/a
|
||||
test_perf_on_all "git rm -f $SPARSE_CONE/a && git checkout HEAD -- $SPARSE_CONE/a"
|
||||
test_perf_on_all git grep --cached bogus -- "f2/f1/f1/*"
|
||||
test_perf_on_all git write-tree
|
||||
test_perf_on_all git describe --dirty
|
||||
test_perf_on_all 'echo >>new && git describe --dirty'
|
||||
|
||||
test_done
|
||||
|
Reference in New Issue
Block a user