Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Slowness issue with git completion



On Wed, 27 Apr 2011, Felipe Contreras wrote:

On Wed, Apr 27, 2011 at 12:52 AM, Benjamin R. Haskell wrote:
It's a workaround.  At some point, someone (probably someone participating in this thread) will figure out a proper solution.  But until that happens the workaround is better than breaking the context sensitivity of git completion just to make it as fast as bash.

I disagree. The "context sensitivity" doesn't work. The current behavior is broken.

Everyone else in the thread seems to think that it's desired. That is: if it weren't unusably slow, it'd be preferable.


I say it should be the other way around, that "context sensitivity" which is only used for 'git add' should not make the rest of the commands dead slow, it should be disabled until it's working properly (fast).

Disabling the context sensitivity of Zsh's git file completion requires rewriting other portions of the completion, since the rest depends on being able to call it how it does. People who are actively contributing to the _git function want this functionality. So, from that perspective it's not worth the effort to rip it out.

I've given you an admittedly-stupid workaround. The other options are to wait for someone to fix it, fix it yourself, or use bash (which has the behavior you want).

--
Best,
Ben


Messages sorted by: Reverse Date, Date, Thread, Author