[Intel-gfx] [maintainer-tools PATCH 4/8] completion: use the dim helpers to complete nightly and upstream branches
Jani Nikula
jani.nikula at intel.com
Thu Feb 18 16:20:50 UTC 2016
Use the user's configured directories and remotes via dim.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
bash_completion | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/bash_completion b/bash_completion
index 6a3a88cc80f8..f89764e3947d 100644
--- a/bash_completion
+++ b/bash_completion
@@ -27,13 +27,8 @@ _dim ()
# args = number of arguments
_count_args
- if [ -f ~/linux/drm-intel-rerere/nightly.conf ] ; then
- local nightly_branches=`(source ~/linux/drm-intel-rerere/nightly.conf ; echo $nightly_branches) | \
- xargs -n 1 echo | grep '^origin' | sed -e 's/^origin\///'`
- else
- local nightly_branches=""
- fi
- local upstream_branches="origin/master airlied/drm-next airlied/drm-fixes"
+ local nightly_branches="$(dim list-branches)"
+ local upstream_branches="$(dim list-upstreams)"
cmds="setup nightly-forget update-branches"
cmds="$cmds rebuild-nightly cat-to-fixup"
--
2.1.4
More information about the Intel-gfx
mailing list