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

Jani Nikula jani.nikula at linux.intel.com
Wed Oct 21 01:20:05 PDT 2015


On Wed, 21 Oct 2015, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>

Acked-by: Jani Nikula <jani.nikula 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
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Jani Nikula, Intel Open Source Technology Center


More information about the Intel-gfx mailing list