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

Git bash completion and special characters (particularly #)

From
DVDobes Vandermeer <dobesv@gmail.com>
Date
Jul 30, 2010, 18:54 UTC
Message-ID
<AANLkTi=+HhRUJ2wGc4nUZ7pVbnKa+A3pq4tNXx0dBpn_@mail.gmail.com>

Git bash completion is great, but we always have special characters in our branches - particularly we name the branch after the trac ticket #, like "#1234-foo".

Git's branch completion mechanism doesn't quote the branch name in this case, so the branch name and anything after it is commented out.

Any idea how hard it would be to wrap the branch name in quotes (possibly only when there's characters requiring quoting in the branch name) ?

Thanks,
Dobes
Message 1 of 1 in “Git bash completion and special characters (particularly #)”
  1. Dobes VandermeerJul 30, 2010

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.