Merge branch 'jk/revision-rewritten-parents-in-prio-queue'
Performance fix for "rev-list --parents -- pathspec". * jk/revision-rewritten-parents-in-prio-queue: revision: use a prio_queue to hold rewritten parents
This commit is contained in:
@ -14,6 +14,24 @@ test_perf 'rev-list --all --objects' '
|
||||
git rev-list --all --objects >/dev/null
|
||||
'
|
||||
|
||||
test_perf 'rev-list --parents' '
|
||||
git rev-list --parents HEAD >/dev/null
|
||||
'
|
||||
|
||||
test_expect_success 'create dummy file' '
|
||||
echo unlikely-to-already-be-there >dummy &&
|
||||
git add dummy &&
|
||||
git commit -m dummy
|
||||
'
|
||||
|
||||
test_perf 'rev-list -- dummy' '
|
||||
git rev-list HEAD -- dummy
|
||||
'
|
||||
|
||||
test_perf 'rev-list --parents -- dummy' '
|
||||
git rev-list --parents HEAD -- dummy
|
||||
'
|
||||
|
||||
test_expect_success 'create new unreferenced commit' '
|
||||
commit=$(git commit-tree HEAD^{tree} -p HEAD) &&
|
||||
test_export commit
|
||||
|
Reference in New Issue
Block a user