3 if [ "$1" = "-f" ];then
6 elif [ -n "$(/bin/ls *.patch 2>/dev/null|tee /proc/self/fd/2)" ];then
7 echo >&2 "Some *.patch files exist!"
12 if [ $# != 1 ] || ! echo "$1" | grep -q '-';then
13 echo >&2 "Syntax: $0 branch-list-delimited-by-dashes"
17 for elem in $(echo "$1"|tr '-' ' ');do
18 if [ "$base" = "master" ];then
26 echo -e '/^--- /,$d\nw'|ed "$next".patch
30 git diff "$base" "$next"|diffdecvs >>"$next".patch