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

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


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

Notice that "shift" is not needed anymore since it is
getting shifted by default for all subcommands.

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

diff --git a/qf b/qf
index b7f6c116f341..c1db7231474b 100755
--- a/qf
+++ b/qf
@@ -170,12 +170,6 @@ function quilt_clean_check
 }
 
 case "$1" in
-	git|g)
-		cd_toplevel
-		cd patches
-		shift
-		git "$@"
-		;;
 	gitk|k)
 		cd_toplevel
 		cd patches
@@ -505,6 +499,14 @@ function qf_baseline
 	echo $baseline
 }
 
+qf_alias_g=git
+function qf_git
+{
+	cd_toplevel
+	cd patches
+	git "$@"
+}
+
 function qf_help
 {
 	manpage=$DIM_PREFIX/maintainer-tools/qf.rst
-- 
2.13.2



More information about the Intel-gfx mailing list