3 if [ $# != 1 ] || ! echo "$1" | grep -q '-';then
4 echo >&2 "Syntax: $0 branch-list-delimited-by-dashes"
8 for elem in $(echo "$1"|tr '-' ' ');do
9 if [ "$base" = "master" ];then
16 if [ -e "$next".patch ];then
17 echo -e '/^--- /,$d\nw'|ed "$next".patch
19 git diff "$base" "$next"|diffdecvs >>"$next".patch