CC_CMD="`pwd`/scripts/get_maintainer.pl --nogit --nogit-fallback --norolestats --non --nom"
# Set default values
+debug="0"
commit_start=""
commit_end=""
DRY_RUN="--dry-run"
echo "Usage: ${PROG_NAME} [OPTIONS...]"
echo
echo "Options:"
+ echo " -d debug mode"
echo " -e end commit (string)"
echo " -f folder containing patch infos"
echo " -h display this help and exit"
echo
}
-while getopts "e:f:hnprs:" flag ;do
+while getopts "de:f:hnprs:" flag ;do
case ${flag} in
+ d)
+ debug="1"
+ ;;
e)
commit_end="${OPTARG}"
;;
git branch -D ${patches_branch}
fi
+if [ "${debug}" = "1" ]; then
+ echo "start commit: ${COMMIT_START_SHA1}"
+ echo "end commit: ${COMMIT_END_SHA1}"
+fi
+
# Create new branch from base_branch, and apply all our patches onto it:
git checkout -b ${patches_branch} ${base_branch}
git branch --set-upstream-to ${base_branch}