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 <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
---
 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

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

Reply via email to