blob: 5bc4627126cc6d769a141de9dc32b98eda7277b9 [file] [edit]
#!/bin/sh
TOPICS=$(mktemp)
trap 'rm -f "$TOPICS"' 0 1 2 3 15
: ${fromto:=master..seen}
sed -e 's/^ [-+] //' |
while read topic rest
do
case "$topic" in
"" | "<"*) continue ;;
esac
echo "branch '$topic' into jch"
echo "branch '$topic' into seen"
echo "branch '$topic' into HEAD"
echo "branch '$topic'"
done >"$TOPICS"
test -d Meta || cd .. && test -d Meta || exit 1
git log --first-parent --oneline "$fromto" |
grep -f "$TOPICS" |
tac |
sed -ne "s|^[0-9a-f]* Merge branch '\([^']*\)'\( into \(.*\)\)\?$|\3 \1|p"
exit $?