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

broken bash completion

From
RLRolf Leggewie <foss@rolf.leggewie.biz>
Date
May 2, 2012, 14:09 UTC
Message-ID
<4FA14016.8050503@rolf.leggewie.biz>

forward from http://code.google.com/p/git-core/issues/detail?id=11 and https://bugs.launchpad.net/bugs/853081

Hello,

not sure you guys pay much attention to the issue tracker over on code.google.com so I'll try my luck here.

Current bash completion works the following way.
1) only tag-completion possible: complete tag as much as possible
2) only file/dir-completion possible: complete path as much as possible
3) all of tag/file/dir-completion possible: complete tag (!) as much as 
possible

1 and 2 are fine, but for #3 git should really stop at the lowest common denominator for all of tags, files and directories. This is explained better in above tickets, but I'll also include an example here for illustration. Let's say I had tags debian/1.4.9-1 and debian/1.4.9-2 as well as debian/changelog file (as is common when using git-buildpackage, this is a real life example). Current bash-completion behavior for "git log debiTAB" is to complete to "git log debian/1.4.9-" when it really should be "git log debian/".

Thank you for your attention.
Regards
Rolf
Next: SZEDER Gábor
Message 1 of 8 in “broken bash completion”
  1. Rolf LeggewieMay 2, 2012
  2. SZEDER GáborMay 4, 2012
  3. Rolf LeggewieMay 5, 2012
  4. SZEDER GáborMay 5, 2012
  5. Andreas SchwabMay 5, 2012
  6. Felipe ContrerasMay 5, 2012
  7. fREW SchmidtMay 5, 2012
  8. Felipe ContrerasMay 5, 2012

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.