Dear Maintainer,
The debian/git-buildpackage.zsh-completion is full of duplicated
function implementations:
$ cat debian/git-buildpackage.zsh-completion| grep -E '.*() {' | sort | uniq -c
2 _gbp() {
2 __gbp_branch_options() {
2 _gbp-buildpackage() {
2 _gbp-clone() {
2 __gbp_common_options() {
1 _gbp-config() {
2 _gbp-create-remote-repo() {
2 _gbp-dch () {
1 _gbp-export-orig() {
2 _gbp-import-dsc() {
2 _gbp-import-dscs() {
2 _gbp-import-orig() {
1 _gbp-import-ref() {
2 _gbp-pq() {
1 _gbp-pristine-tar() {
2 _gbp-pull() {
1 _gbp-push() {
1 _gbp-tag() {
2 __gbp_tag_format_options() {
2 __gbp_tag_sign_options() {
In particular, the _gbp() function that is defined twice does define the
`tag` subcommand in one of the implementations, but not in the other.
This is leading to the following bogus completion behavior:
* start a new zsh instance
* type `gbp`
* press <Tab> to complete
* the `tag` option is displayed
* press <Tab> again to select one of the options
* the `tag` option dissapears and will never be suggested during the zsh
session
I feel that the duplication of the functions is not intentional and that
it is the root cause of this behavior. The solution could be to remove
the duplicate implementations, by keeping the most complete ones, in
order to fix this issue.
BRs,