Signed-off-by: Jani Nikula <[email protected]>
---
dim | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/dim b/dim
index 26ab728efb16..1f51ab9292b1 100755
--- a/dim
+++ b/dim
@@ -587,6 +587,18 @@ function dim_create_workdir
done
}
+function dim_for_each_workdirs
+{
+ cd $DIM_PREFIX/$DIM_DRM_INTEL
+ $@
+ for branch in $dim_branches ; do
+ if [[ -d $DIM_PREFIX/$branch ]] ; then
+ cd $DIM_PREFIX/$branch
+ $@
+ fi
+ done
+}
+
# dim_pull_request branch upstream
function dim_pull_request
{
@@ -787,16 +799,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
- for-each-workdirs)
- cd $DIM_PREFIX/$DIM_DRM_INTEL
- $@
- for branch in $dim_branches ; do
- if [[ -d $DIM_PREFIX/$branch ]] ; then
- cd $DIM_PREFIX/$branch
- $@
- fi
- done
- ;;
cat-to-fixup)
cd $DIM_PREFIX/drm-intel-nightly
cat > `cat .fixup_file_path`
--
2.1.4
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx