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

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 | 32 +++++++++++++++++---------------
 1 file changed, 17 insertions(+), 15 deletions(-)

diff --git a/qf b/qf
index 85ef2a8f4f3c..fe19204de461 100755
--- a/qf
+++ b/qf
@@ -170,21 +170,6 @@ function quilt_clean_check
 }
 
 case "$1" in
-       list-unused-patches)
-               cd_toplevel
-               repo_check 1
-
-               for patch in patches/*.patch ; do
-                       if ! grep "^${patch#patches/}$" patches/series > 
/dev/null ; then
-                               if [[ "$2" != --purge ]] ; then
-                                       echo $patch
-                               else
-                                       echo deleting $patch
-                                       rm $patch
-                               fi
-                       fi
-               done
-               ;;
        baseline)
                cd_toplevel
                repo_check 1
@@ -501,6 +486,23 @@ function qf_patch_amend
        gvim `quilt top`
 }
 
+function qf_list_unused_patches
+{
+       cd_toplevel
+       repo_check 1
+
+       for patch in patches/*.patch ; do
+               if ! grep "^${patch#patches/}$" patches/series > /dev/null ; 
then
+                       if [[ "$1" != --purge ]] ; then
+                               echo $patch
+                       else
+                               echo deleting $patch
+                               rm $patch
+                       fi
+               fi
+       done
+}
+
 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