projects
/
hvutilities.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c53fd54
)
hvsp: add debug option
author
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 28 Nov 2023 20:16:52 +0000
(15:16 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 28 Nov 2023 20:16:52 +0000
(15:16 -0500)
scripts/kernel-send-patches.sh
patch
|
blob
|
history
diff --git
a/scripts/kernel-send-patches.sh
b/scripts/kernel-send-patches.sh
index
df041a0
..
6231ac8
100755
(executable)
--- a/
scripts/kernel-send-patches.sh
+++ b/
scripts/kernel-send-patches.sh
@@
-44,6
+44,7
@@
TO_CMD="`pwd`/scripts/get_maintainer.pl --nogit --nogit-fallback --norolestats -
CC_CMD="`pwd`/scripts/get_maintainer.pl --nogit --nogit-fallback --norolestats --non --nom"
# Set default values
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"
commit_start=""
commit_end=""
DRY_RUN="--dry-run"
@@
-64,6
+65,7
@@
print_usage()
echo "Usage: ${PROG_NAME} [OPTIONS...]"
echo
echo "Options:"
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 " -e end commit (string)"
echo " -f folder containing patch infos"
echo " -h display this help and exit"
@@
-74,8
+76,11
@@
print_usage()
echo
}
echo
}
-while getopts "e:f:hnprs:" flag ;do
+while getopts "
d
e:f:hnprs:" flag ;do
case ${flag} in
case ${flag} in
+ d)
+ debug="1"
+ ;;
e)
commit_end="${OPTARG}"
;;
e)
commit_end="${OPTARG}"
;;
@@
-283,6
+288,11
@@
if git branch | grep -q ${patches_branch}; then
git branch -D ${patches_branch}
fi
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}
# 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}