Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-11-30 12:18:04 +0100
committerMichal Suchanek <msuchanek@suse.de>2018-11-30 12:22:05 +0100
commit990531c14308487e07711bbc18734e26f4ded328 (patch)
tree4c24df7ee50639948f25ea8c567c4fb027ea57d6
parent2286fa511b44f5b1065eeeeb45393e3bc9383d53 (diff)
scripts/log2: add --no-edit argument.
-rwxr-xr-xscripts/log212
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/log2 b/scripts/log2
index 4cb5e18c34..6ac84d890c 100755
--- a/scripts/log2
+++ b/scripts/log2
@@ -298,7 +298,7 @@ splice_series()
commit_single_patches()
{
local saved_index=$(git write-tree) patch series
- local file added=() modified_aux=() deleted=() no_edit
+ local file added=() modified_aux=() deleted=()
git cat-file blob HEAD:series.conf > "$tmpdir"/old_series
cp series.conf "$tmpdir"/new_series
@@ -375,6 +375,16 @@ fi
"$_libdir"/check-cvs-add || exit 1
+while [ -n "$1" ] ; do
+ case "$1" in
+ --no-edit) no_edit=--no-edit
+ ;;
+ *) echo Unknown argument "$1" >&2
+ ;;
+ esac
+ shift
+done
+
trap 'rm -rf "$tmpdir"' EXIT
tmpdir=$(mktemp -d /tmp/${0##*/}.XXXXXX)