[Intel-gfx] [maintainer-tools PATCH] dim: completion for checkout

Daniel Vetter daniel.vetter at ffwll.ch
Wed Oct 21 01:02:54 PDT 2015


Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
 bash_completion | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bash_completion b/bash_completion
index 0ad0ec4c88fe..e35a001dcb73 100644
--- a/bash_completion
+++ b/bash_completion
@@ -24,7 +24,7 @@ _dim ()
 	cmds="setup nightly-forget update-branches"
 	cmds="$cmds rebuild-nightly cat-to-fixup"
 	cmds="$cmds push-queued pq push-fixes pf push-next-fixes pnf push-branch"
-	cmds="$cmds co cof conf"
+	cmds="$cmds checkout co cof conf"
 	cmds="$cmds apply-branch ab sob apply-queued aq apply-fixes af apply-next-fixes anf"
 	cmds="$cmds magic-patch mp cd"
 	cmds="$cmds magic-rebase-resolve mrr"
@@ -96,6 +96,11 @@ _dim ()
 				COMPREPLY=( $( compgen -o nospace -W "drm- topic/" -- $cur ) )
 			fi
 			;;
+		checkout)
+			if [[ $COMP_CWORD == "$((i+1))" ]] ; then
+				COMPREPLY=( $( compgen -W "$nightly_branches" -- $cur ) )
+			fi
+			;;
 		remove-branch)
 			if [[ $COMP_CWORD == "$((i+1))" ]] ; then
 				COMPREPLY=( $( compgen -W "$nightly_branches" -- $cur ) )
-- 
2.5.1



More information about the Intel-gfx mailing list