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

Cc: Jani Nikula <jani.nik...@intel.com>
Cc: Daniel Vetter <daniel.vet...@ffwll.ch>
Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.v...@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

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

Reply via email to