From: David Rhodes Clymer Date: Sat, 30 Jan 2010 23:03:43 GMT Subject: Re: Custom git completion 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 wrote: > Junio C Hamano 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