Re: Custom git completion
- From
David Rhodes Clymer <david@zettazebra.com>
- Date
- Jan 30, 2010, 23:03 UTC
- Message-ID
- <9b69cfcf1001301503n455191cdse93a7d4e86c0e6a0@mail.gmail.com>
- In-Reply-To
- <20100129175950.GE21821@spearce.org>
On Fri, Jan 29, 2010 at 12:59 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 9 quoted lines
> Junio C Hamano <gitster@pobox.com> wrote: >> >> How does the completion code learn what options and arguments such aliases >> and subcommands (e.g. "git foo") take without being told? > > Sure. But the patch offered by the original poster also suffered > from this problem, it didn't know how to complete arguments for > the subcommand. >
My patch allows custom completion code to be called if available. I don't expect git completion to know anything about my new command.
-davidc