zsh completion for `git push origin --delete`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]