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

Re: bash completion bug: "symbolic-ref" subcommand doesn't complete

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 12, 2026, 16:21 UTC
Message-ID
<xmqqikb1ggri.fsf@gitster.g>
In-Reply-To
<c1e0c05b-c767-4fcc-859a-4da6b90c4497@gmail.com>
Andrey <butirsky@gmail.com> writes:
> Bash can't complete some commands, e.g. symbolic-ref, bugreport, maybe 
> others.
Isn't this working as intended?

Our general principle is that the plumbing commands are not designed to be "typed" by end-user to use interactively, and cat-file, commit-tree, etc. are not completed to reduce cluttering when the user does

	$ git <TAB>

If zsh completion includes plumbing commands, then zsh completion is buggy, or those who designed zsh completion did not understand the general principle ;-).

Previous: AndreyNext: Andrey
Message 2 of 4 in “bash completion bug: "symbolic-ref" subcommand doesn't complete”
  1. AndreyMar 12, 2026
  2. Junio C HamanoMar 12, 2026
  3. AndreyMar 12, 2026
  4. AndreyMar 12, 2026

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.