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

Rodrigo Vivi rodrigo.vivi at intel.com
Mon Aug 21 20:11:00 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 | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/qf b/qf
index 1e5594eaf223..6413c2dd4732 100755
--- a/qf
+++ b/qf
@@ -170,20 +170,6 @@ function quilt_clean_check
 }
 
 case "$1" in
-	fetch)
-		cd_toplevel
-		repo_check 0
-
-		remote=`git config branch.$branch.remote`
-
-		cd patches
-		git fetch $remote
-		cd ..
-
-		git fetch $remote
-
-		git fetch $remote
-		;;
 	pull)
 		cd_toplevel
 		repo_check 0
@@ -485,6 +471,22 @@ function qf_push
 	git push $remote refs/baselines/$branch/*:refs/baselines/$branch/*
 }
 
+function qf_fetch
+{
+	cd_toplevel
+	repo_check 0
+
+	remote=`git config branch.$branch.remote`
+
+	cd patches
+	git fetch $remote
+	cd ..
+
+	git fetch $remote
+
+	git fetch $remote
+}
+
 function qf_help
 {
 	manpage=$DIM_PREFIX/maintainer-tools/qf.rst
-- 
2.13.2



More information about the Intel-gfx mailing list