# zsh completion for `git push origin --delete`

1 messages from 2015-01-17 to 2015-01-17. Participants: Albert Netymk.
Thread: https://gitlist.dev/t/38390

## Albert Netymk, 2015-01-17 11:18

Subject: zsh completion for `git push origin --delete`
Message-ID: <CAKEGsXTpzZQSHk-8x2kYEcaayLOpsLpU0J5pPne7CBGvTtXGkg@mail.gmail.com>
URL: https://gitlist.dev/e/CAKEGsXTpzZQSHk-8x2kYEcaayLOpsLpU0J5pPne7CBGvTtXGkg%40mail.gmail.com

```
The man for `--delete` says only refs on the remote repo are affected.
Then, the auto-completion in zsh shall not return local refs.

ˋˋˋ
$ git branch -a
  master
* tmp
  remotes/origin/master
  remotes/origin/tmp

$ git push origin --delete <tab>
FETCH_HEAD     HEAD           master         ORIG_HEAD
origin/master  origin/tmp     tmp
ˋˋˋ
I feel hitting <tab> shall only return `master` and `tmp`, which are
the valid input `--delete` option.

git version 2.2.2

-- 
Best Regards

Yours faithfully
Albert Netymk

```
