mirror of
https://github.com/git/git.git
synced 2026-01-12 13:53:11 +09:00
Meta/CheckPush: allow jch to lag a bit behind next
This commit is contained in:
parent
138b4c2de6
commit
63462397c6
16
CheckPush
16
CheckPush
@ -29,4 +29,18 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
git diff --stat next jch
|
||||
if next_tree=$(git rev-parse next^{tree}) &&
|
||||
next_equiv=$(git rev-list jch..pu |
|
||||
xargs -n1 sh -c '
|
||||
echo $(git rev-parse $1^{tree}) $1
|
||||
' - | sed -n -e "s/^$next_tree //p"
|
||||
) &&
|
||||
test -n "$next_equiv"
|
||||
then
|
||||
jch=$(git rev-list --first-parent master..jch | wc -l) &&
|
||||
pu=$(git rev-list --first-parent master..pu | wc -l) &&
|
||||
next=$(git rev-list --first-parent master..$next_equiv | wc -l) &&
|
||||
echo $jch..$next..$pu
|
||||
else
|
||||
git diff --stat next jch
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user