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

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


No functional change. Only moving from the case
to its own function.

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 | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/qf b/qf
index 534338dc5f01..565c97f5de92 100755
--- a/qf
+++ b/qf
@@ -170,14 +170,6 @@ function quilt_clean_check
 }
 
 case "$1" in
-	stage)
-		cd_toplevel
-		repo_check 1
-
-		git reset --mixed &> /dev/null
-		quilt applied 2> /dev/null | xargs git apply --cached
-		echo All applied patches successfully staged
-		;;
 	wiggle-push|wp)
 		cd_toplevel
 		repo_check 1
@@ -489,6 +481,16 @@ function qf_pull
 	qf co
 }
 
+function qf_stage
+{
+	cd_toplevel
+	repo_check 1
+
+	git reset --mixed &> /dev/null
+	quilt applied 2> /dev/null | xargs git apply --cached
+	echo All applied patches successfully staged
+}
+
 function qf_help
 {
 	manpage=$DIM_PREFIX/maintainer-tools/qf.rst
-- 
2.13.2



More information about the Intel-gfx mailing list