Meta/cycle-run: draw a plan just once for both merges and individual commits

todo
Junio C Hamano 2021-03-23 22:24:31 -07:00
parent 5b24ed8d98
commit a887ac9001
1 changed files with 6 additions and 4 deletions

View File

@ -73,11 +73,11 @@ test_them () {
M)
type=M
commit=$merge
subject=$(git show -s --format="%s" "$merge") ;;
subject=$(git show -s --format="%s" "$commit") ;;
C)
type=C
commit=$merge
subject=$(git show -s --format="%s" "$merge") ;;
subject=$(git show -s --format="%s" "$commit") ;;
*)
type=T
commit=$tip
@ -111,5 +111,7 @@ do
done

git fetch
git rev-list --no-merges $RANGE | test_them
git rev-list --first-parent --parents $RANGE | test_them
(
git rev-list --no-merges $RANGE
git rev-list --first-parent --parents $RANGE
) | test_them