CheckPush: older integration branches should be subset of newer ones
[alt-git.git] / CheckPush
blob9280aae8e292c7ea8884d1402b24cb7fa0f6af04
1 #!/bin/sh
3 for range in $(
4 prev_branch=
6 git for-each-ref --format='%(refname)' refs/heads/maint-* |
7 sed -e 's|^refs/heads/||'
8 cat <<-EOF
9 maint
10 master
11 next
12 EOF
13 } |
14 while read branch
16 if test -n "$prev_branch"
17 then
18 echo "$branch..$prev_branch"
20 prev_branch=$branch
21 done
22 ) pu..jch
24 lg=$(git log --oneline "$range")
25 if test -n "$lg"
26 then
27 echo "*** $range ***"
28 echo "$lg"
30 done
32 git diff --stat next jch