git/list[1] front-page[2] threads[3] people[4] search[5] about
 

zsh completion for `git push origin --delete`

From
ANAlbert Netymk <albertnetymk@gmail.com>
Date
Jan 17, 2015, 11:18 UTC
Message-ID
<CAKEGsXTpzZQSHk-8x2kYEcaayLOpsLpU0J5pPne7CBGvTtXGkg@mail.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
Message 1 of 1 in “zsh completion for `git push origin --delete`”
  1. Albert NetymkJan 17, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.