diff mbox

[maintainer-tools,RFC,17/17] dim: abstract dim_push_*

Message ID 40d5e4572632380c796f81b2184e3930bd4ef72f.1453818220.git.jani.nikula@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jani Nikula Jan. 26, 2016, 2:32 p.m. UTC
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 dim | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)
diff mbox

Patch

diff --git a/dim b/dim
index 1f51ab9292b1..d5149f01db34 100755
--- a/dim
+++ b/dim
@@ -373,6 +373,21 @@  function dim_push_branch
 	update_linux_next
 }
 
+function dim_push_queued
+{
+	dim_push_branch drm-intel-next-queued "$@"
+}
+
+function dim_push_next_fixes
+{
+	dim_push_branch drm-intel-next-fixes "$@"
+}
+
+function dim_push_fixes
+{
+	dim_push_branch drm-intel-fixes "$@"
+}
+
 # ensure we're on branch $1, and apply patches. the rest of the arguments are
 # passed to git am.
 function dim_apply_branch
@@ -803,15 +818,6 @@  case "$subcmd" in
 		cd $DIM_PREFIX/drm-intel-nightly
 		cat > `cat .fixup_file_path`
 		;;
-	push-queued)
-		dim_push_branch drm-intel-next-queued "$@"
-		;;
-	push-next-fixes)
-		dim_push_branch drm-intel-next-fixes "$@"
-		;;
-	push-fixes)
-		dim_push_branch drm-intel-fixes "$@"
-		;;
 	conq)
 		dim_checkout drm-intel-next-queued
 		;;