Re: Custom git completion
- From
David Rhodes Clymer <david@zettazebra.com>
- Date
- Jan 30, 2010, 23:00 UTC
- Message-ID
- <9b69cfcf1001301500s48fcc476p1fd2c14e4310b892@mail.gmail.com>
- In-Reply-To
- <20100129151127.GA21821@spearce.org>
On Fri, Jan 29, 2010 at 10:11 AM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 10 quoted lines
> David Rhodes Clymer <david@zettazebra.com> wrote: >> Unless I read it incorrectly, the completion script included with >> git-core does not make it easy for users to write completion scripts >> for custom git commands. I can extend git itself by creating a command >> "git-foo", and placing it in my path. > > git config --global alias.foo /home/me/bin/my-git-foo > > git foo will now complete correctly. No need to modify the > completion code.
This doesn't do what I want. This workaround only allows the command name itself to be completed. I want my _custom_ completion code to be used for my custom command.
-davidc