From 01ee02783d51ffc6cd94820cb66c49812f9eeec9 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 14 Sep 2017 18:21:17 +0200 Subject: bash completion: add some missing branch and file opts This unbreaks completion of options on some of the newer commands such as gbp export-orig --tarball-dir= --- debian/gbp.completion | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/gbp.completion b/debian/gbp.completion index 1f7f484b..7aa3424d 100644 --- a/debian/gbp.completion +++ b/debian/gbp.completion @@ -48,14 +48,15 @@ _gbp_comp () local cur="${COMP_WORDS[COMP_CWORD]}" local prev="${COMP_WORDS[COMP_CWORD - 1]}" local options=$1 - local branch_opts=${2:-"--debian-branch\= --upstream-branch\="} + local branch_opts=${2:-"--debian-branch\= --upstream-branch\= --upstream-tree\="} local tag_opts=${3:-"--debian-tag\= --upstream-tag\= --upstream-vcs-tag\="} local tristate_opts=${4:-"--color\="} local cbdist_opts=${5:-"--git-dist\="} local remote_config_opts="--remote-config\=" local file_opts="--postimport\= --git-builder\= --git-cleaner\= \ --git-export-dir\= --git-postbuild\= --git-postexport\= \ - --git-posttag\= --git-prebuild\= --git-tarball-dir\=" + --git-posttag\= --git-prebuild\= --git-tarball-dir\= \ + --posttag\= --tarball-dir\=" local start_opt="" # COMPREPLY considers '=' as a word. For $prev we prefer the word before the actual "=" -- cgit v1.2.3