subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject Re: bash_completion - subversion add: svn ls/merge ^/<remote path>
Date Mon, 17 Aug 2015 10:08:44 GMT
Christian Ferbar <chris@qnipp.com> writes:

> --- /etc/bash_completion.d/subversion	2015-08-11 22:17:11.808000000 +0200
> +++ subversion	2015-08-12 11:13:42.135616669 +0200
> @@ -420,6 +420,16 @@
>  
>  			COMPREPLY=( $(compgen -W "$choices" -- $suffix ) )
>  			return
> +        elif [[ $cmd == @(ls|list) && $cur == ^/* ]] ; then
> +          # autocomplete für svn ls ^/bla
> +          if [[ $cur =~ ((.*/)([^/]*)) ]] ; then
> +            url="${BASH_REMATCH[2]}"
> +	        path="${BASH_REMATCH[3]}"
> +            remote_files="$(svn ls "$url")"

What about error messages from the command?  Should they be dropped or
displayed?  What about authentication prompts?  Is --non-interactive
needed?

-- 
Philip Martin
WANdisco

Mime
View raw message