This is an automated email from the git hooks/post-receive script. bignose-guest pushed a commit to branch wip/issue/824369/correct-debs-dir-completion in repository devscripts.
commit 7b6348b3bb1451f7fd2ff381aed96442ea23b43f Author: Ben Finney <[email protected]> Date: Sun May 15 18:14:40 2016 +1000 Get correct completion for ‘--debs-dir’ argument. --- scripts/debdiff.bash_completion | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/debdiff.bash_completion b/scripts/debdiff.bash_completion index 1ae9eef..4eaeba5 100644 --- a/scripts/debdiff.bash_completion +++ b/scripts/debdiff.bash_completion @@ -38,6 +38,10 @@ _debdiff() options+=' --noconf --no-conf' ;; + --debs-dir) + COMPREPLY=( $( compgen -A directory -- "$cur" ) ) + ;; + esac if [[ -v COMPREPLY ]] ; then @@ -84,9 +88,7 @@ _debdiff() if [[ $file_list_mode == normal ]]; then - if [[ $prev == --debs-dir ]]; then - COMPREPLY=$( ( compgen -d -- "$cur" ) ) - elif [[ $cur == -* ]]; then + if [[ $cur == -* ]]; then COMPREPLY=( $( compgen -W "${options}" -- "$cur" ) ) else declare -a _compreply=( $( compgen -o filenames -G '*.@(deb|dsc|changes)' ) ) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git _______________________________________________ devscripts-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
