aboutsummaryrefslogtreecommitdiff
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
parent7374d00b74c60a2d7574216711c4b835d8711b5a (diff)
bash completion: add completion for gbp-{pq,pull,clone}
-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 653c412..96e5b3a 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