3 if [ -z "$1" -o -z "$2" -o -z "$3" ] ; then
4 echo "Apply unpushed changes from git to a CVS tree."
6 echo "Usage: git-patch-cvs <git-upstream> <git-head> <cvs-working-dir>"
8 echo "Example: assuming changes on master branch, with remote as"
9 echo " origin/master, patching cvs in ../barry3"
11 echo " git-patch-cvs origin master ../barry3"
13 echo "This script does NOT push changes to git remote."
18 git cherry
"$1" "$2" | \
20 xargs -L 1 git cvsexportcommit
-cvp -w "$3"