threads / discuss / 38390

zsh completion for `git push origin --delete`

Subject: zsh completion for `git push origin --delete`

## tl;dr

One message between Jan 17, 2015 and Jan 17, 2015.

replies: 0people: 1as markdown or json

Albert Netymk· Jan 17, 2015, 11:18 UTC · lore

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

← back to recent threads