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

Rodrigo Vivi rodrigo.vivi at intel.com
Mon Aug 21 20:11:05 UTC 2017


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

Cc: Jani Nikula <jani.nikula at intel.com>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
 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



More information about the Intel-gfx mailing list