kien/ctrlp.vim — pull request #16 by wjkoh (2011-10-08 07:58:45+00:00)
Title: Add an option for using VCS's list command instead of Vim's globpath()

Hi,

I made a functionality using VCS's list command instead of globpath(). It is much faster than globpath() but it may be little slower than find in Linux. However, there are some pros in compare with find or globpath(). For example, only version-tracked files are listed, it works in any OS without configuration, faster for a huge repository and so on.

I added supports for not only Git and Mercurial but also Subversion. However, subversion's list is slower than globpath() because of its distributed .svn directories. You can remove it.

Please pull my changes, and modify or integrate as you want. Since I don't have much experiences in Vim script, I tried to minimize changes and side effects of my code. So it may be inefficient in many ways.

* Add g:ctrlp_use_vcs_ls option variable
* Support Git, Mercurial and Subversion