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

Re: [PATCH] completion: complete "git diff ...branc<TAB>"

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Feb 24, 2011, 13:58 UTC
Message-ID
<20110224135821.GA14720@neumann>
In-Reply-To
<4D664E19.5080804@drmicha.warpmail.net>
On Thu, Feb 24, 2011 at 01:24:57PM +0100, Michael J Gruber wrote:
Show 9 quoted lines
> Reminds me fo the following: Typing
> 
> git log origin/next@{1}..o<TAB>
> 
> gives
> 
> git log origin/next{1}..o
> 
> WTF? Completion eats at babies!
Interesting, I can't seem to be able to reproduce.
  git log origin/next@{1}..o<TAB>
gives me
  git log origin/next@{1}..origin/

and a TAB after that gives me all the remote branches from origin, as it is supposed to, leaving the @{1} intact.

Which git, bash, and bash completion versions are you using?

Best, Gábor

Previous: Michael J GruberNext: Michael J Gruber
Message 3 of 9 in “completion: complete "git diff ...branc<TAB>"”
  1. completion: complete "git diff ...branc<TAB>"Junio C Hamano, Feb 23, 2011
  2. Michael J GruberFeb 24, 2011
  3. SZEDER GáborFeb 24, 2011
  4. Michael J GruberFeb 24, 2011
  5. SZEDER GáborFeb 24, 2011
  6. Junio C HamanoFeb 24, 2011
  7. 1/2 bash: fix misindented esac statement in __git_complete_file()SZEDER Gábor, Mar 10, 2011
  8. 2/2 bash: complete 'git diff ...branc<TAB>'SZEDER Gábor, Mar 10, 2011
  9. Junio C HamanoMar 10, 2011

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.