[Intel-gfx] [maintainer-tools RFC PATCH 14/17] dim: abstract dim_nightly_forget
Jani Nikula
jani.nikula at intel.com
Tue Jan 26 06:32:27 PST 2016
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
dim | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/dim b/dim
index 1af2163a5001..b50656cf80a0 100755
--- a/dim
+++ b/dim
@@ -344,6 +344,15 @@ function dim_rebuild_nightly
}
+function dim_nightly_forget
+{
+ cd $DIM_PREFIX/drm-intel-nightly
+ git fetch origin >& /dev/null
+ git reset --hard origin/drm-intel-next-queued >& /dev/null
+ git merge origin/drm-intel-fixes
+ git rerere forget
+}
+
# push branch $1, rebuild nightly. the rest of the arguments are passed to git
# push.
function dim_push_branch
@@ -757,13 +766,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
- nightly-forget)
- cd $DIM_PREFIX/drm-intel-nightly
- git fetch origin >& /dev/null
- git reset --hard origin/drm-intel-next-queued >& /dev/null
- git merge origin/drm-intel-fixes
- git rerere forget
- ;;
update-branches)
cd $DIM_PREFIX/$DIM_DRM_INTEL
git fetch $DIM_DRM_INTEL_REMOTE
--
2.1.4
More information about the Intel-gfx
mailing list