[maintainer-tools PATCH 15/30] qf: Move "apply" from case to new subcommand.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No functional change. Only moving from the case
to its own function, with the arguments now shifted.

Cc: Jani Nikula <jani.nikula@xxxxxxxxx>
Cc: Daniel Vetter <daniel.vetter@xxxxxxxx>
Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>
---
 qf | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/qf b/qf
index ac320d81945f..dff560c2a1cf 100755
--- a/qf
+++ b/qf
@@ -170,17 +170,6 @@ function quilt_clean_check
 }
 
 case "$1" in
-	apply)
-		if [[ "$2" == "" ]] ; then
-			echo No patch name given, aborting.
-			exit
-		fi
-		patch_name=$2.patch
-		quilt import -P $patch_name /proc/self/fd/0
-		quilt push
-		qf git add $patch_name
-		qf patch-amend
-		;;
 	patch-amend|pa)
 		cd_toplevel
 		repo_check 1
@@ -496,6 +485,19 @@ function qf_resolved
 	quilt header -e
 }
 
+function qf_apply
+{
+	if [[ "$1" == "" ]] ; then
+		echo No patch name given, aborting.
+		exit
+	fi
+	patch_name=$1.patch
+	quilt import -P $patch_name /proc/self/fd/0
+	quilt push
+	qf git add $patch_name
+	qf patch-amend
+}
+
 function qf_help
 {
 	manpage=$DIM_PREFIX/maintainer-tools/qf.rst
-- 
2.13.2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux