[maintainer-tools PATCH v2 26/33] dim: abstract dim_pull_request_*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
---
 dim | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/dim b/dim
index 69c8d6a49495..1ecdfefc4f11 100755
--- a/dim
+++ b/dim
@@ -750,6 +750,24 @@ function dim_pull_request
 		"$addr_drm_maintainer"
 }
 
+function dim_pull_request_next
+{
+	upstream=${1:-$DIM_DRM_UPSTREAM_REMOTE/drm-next}
+	dim_pull_request drm-intel-next $upstream
+}
+
+function dim_pull_request_fixes
+{
+	upstream=${1:-origin/master}
+	dim_pull_request drm-intel-fixes $upstream
+}
+
+function dim_pull_request_next_fixes
+{
+	upstream=${1:-$DIM_DRM_UPSTREAM_REMOTE/drm-next}
+	dim_pull_request drm-intel-next-fixes $upstream
+}
+
 dim_alias_ub=update-branches
 function dim_update_branches
 {
@@ -931,18 +949,6 @@ fi
 # XXX: abscract each case to a dim_ prefixed function, and turn the help|*) case
 # into an else branch in the above check for functions.
 case "$subcmd" in
-	pull-request-next)
-		upstream=${1:-$DIM_DRM_UPSTREAM_REMOTE/drm-next}
-		dim_pull_request drm-intel-next $upstream
-		;;
-	pull-request-fixes)
-		upstream=${1:-origin/master}
-		dim_pull_request drm-intel-fixes $upstream
-		;;
-	pull-request-next-fixes)
-		upstream=${1:-$DIM_DRM_UPSTREAM_REMOTE/drm-next}
-		dim_pull_request drm-intel-next-fixes $upstream
-		;;
 	update-next)
 		assert_branch drm-intel-next-queued
 
-- 
2.1.4

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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux