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

Cc: Jani Nikula <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
---
 qf | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/qf b/qf
index ac320d81945f..dff560c2a1cf 100755
--- a/qf
+++ b/qf
@@ -170,17 +170,6 @@ function quilt_clean_check
 }
 
 case "$1" in
-       apply)
-               if [[ "$2" == "" ]] ; then
-                       echo No patch name given, aborting.
-                       exit
-               fi
-               patch_name=$2.patch
-               quilt import -P $patch_name /proc/self/fd/0
-               quilt push
-               qf git add $patch_name
-               qf patch-amend
-               ;;
        patch-amend|pa)
                cd_toplevel
                repo_check 1
@@ -496,6 +485,19 @@ function qf_resolved
        quilt header -e
 }
 
+function qf_apply
+{
+       if [[ "$1" == "" ]] ; then
+               echo No patch name given, aborting.
+               exit
+       fi
+       patch_name=$1.patch
+       quilt import -P $patch_name /proc/self/fd/0
+       quilt push
+       qf git add $patch_name
+       qf patch-amend
+}
+
 function qf_help
 {
        manpage=$DIM_PREFIX/maintainer-tools/qf.rst
-- 
2.13.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to