Re: [PATCH] git-completion.bash - avoid excruciatingly slow ref completion on Cygwin

2014-10-18 Thread Tay Ray Chuan
On Sat, Oct 11, 2014 at 11:51 PM, Mark Levedahl wrote: > > $git checkout was taking about 3.5 seconds to respond on one > repository having four remotes with about 100 total refs (measured on > Cygwin). All of the time was being claimed in "git for-each-ref" to do > its work. This working direc

[PATCH] git-completion.bash - avoid excruciatingly slow ref completion on Cygwin

2014-10-11 Thread Mark Levedahl
$git checkout was taking about 3.5 seconds to respond on one repository having four remotes with about 100 total refs (measured on Cygwin). All of the time was being claimed in "git for-each-ref" to do its work. This working directory was created using git-new-workdir, and thus .git/refs and .gi