You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
448 B

#!/bin/sh
for range in $(
prev_branch=
{
git for-each-ref --format='%(refname)' refs/heads/maint-* |
sed -e 's|^refs/heads/||'
cat <<-EOF
maint
master
next
EOF
} |
while read branch
do
if test -n "$prev_branch"
then
echo "$branch..$prev_branch"
fi
prev_branch=$branch
done
) pu..jch
do
lg=$(git log --oneline "$range")
if test -n "$lg"
then
echo "*** $range ***"
echo "$lg"
fi
done
git diff --stat next jch