aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-01-02 11:32:25 +0100
committerGuido Günther <agx@sigxcpu.org>2011-01-03 22:57:17 +0100
commit25677d0bd76e6cb858184e46c2b5ebc1ca0e861a (patch)
treed2aa1e8df09575c21c4cf9dd5270ef1f51fa552a /debian
parent7374d00b74c60a2d7574216711c4b835d8711b5a (diff)
bash completion: add completion for gbp-{pq,pull,clone}
Diffstat (limited to 'debian')
-rw-r--r--debian/git-buildpackage.bash-completion31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/git-buildpackage.bash-completion b/debian/git-buildpackage.bash-completion
index 653c412e..96e5b3a0 100644
--- a/debian/git-buildpackage.bash-completion
+++ b/debian/git-buildpackage.bash-completion
@@ -107,3 +107,34 @@ _git_import_dsc ()
}
[ "${have:-}" ] && complete -F _git_import_dsc -o default git-import-dsc
+have gbp-pq &&
+_gbp_pq ()
+{
+ local options=$(_gbp_options gbp-pq)
+ options="$options export import rebase drop"
+
+ _gbp_comp "$options"
+}
+[ "${have:-}" ] && complete -F _gbp_pq -o default gbp-pq
+
+have gbp-pull &&
+_gbp_pull ()
+{
+ local options=$(_gbp_options gbp-pull)
+ local branch_opts="--debian-branch\= --upstream-branch\="
+ local tag_opts="--debian-tag\= --upstream-tag\="
+
+ _gbp_comp "$options" "$branch_opts" "$tag_opts"
+}
+[ "${have:-}" ] && complete -F _gbp_pull -o default gbp-pull
+
+have gbp-clone &&
+_gbp_clone ()
+{
+ local options=$(_gbp_options gbp-clone)
+ local branch_opts="--debian-branch\= --upstream-branch\="
+ local tag_opts="--debian-tag\= --upstream-tag\="
+
+ _gbp_comp "$options" "$branch_opts" "$tag_opts"
+}
+[ "${have:-}" ] && complete -F _gbp_clone -o default gbp-clone