No functional change. Only moving from the case
to its own function.
Cc: Jani Nikula <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
---
qf | 42 ++++++++++++++++++++++--------------------
1 file changed, 22 insertions(+), 20 deletions(-)
diff --git a/qf b/qf
index f858d6e67dba..9b7917e214a4 100755
--- a/qf
+++ b/qf
@@ -170,26 +170,6 @@ function quilt_clean_check
}
case "$1" in
- refresh)
- cd_toplevel
- repo_check 0
-
- changed_files=`qf git status --porcelain | wc -l`
-
- if [[ $changed_files -gt 0 ]] ; then
- echo Quilt patch dir not clean, aborting
- exit
- fi
-
- quiet_pop_all
-
- while quilt push ; do
- quilt refresh
- done
-
- # ignore "nothing to commit"
- qf git commit -a -m "Refreshing all patches." || true
- ;;
clean-patches)
cd_toplevel
repo_check 0
@@ -475,6 +455,28 @@ function qf_rebase
quilt push $current_top -q
}
+function qf_refresh
+{
+ cd_toplevel
+ repo_check 0
+
+ changed_files=`qf git status --porcelain | wc -l`
+
+ if [[ $changed_files -gt 0 ]] ; then
+ echo Quilt patch dir not clean, aborting
+ exit
+ fi
+
+ quiet_pop_all
+
+ while quilt push ; do
+ quilt refresh
+ done
+
+ # ignore "nothing to commit"
+ qf git commit -a -m "Refreshing all patches." || true
+}
+
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