Open xiaoski opened 6 years ago
I recently split off a directory into.a git submodule
And now I'm in hell. All the files in the submodule are no longer seen in ctrlp search when I load from the main repo.
@klen / anyone else: Any idea what config combination could get git submodules searching files as if they were just a subdirectory?
To Anybody reading this:
Want to show git submodule files in in ctrlp? Have Git 2.11+?
Change your g:ctrlp_user_command
from git ls-files
to git ls-files --recurse-submodules
@tony Perfect, thank you!
I have a directory with multiple git repositories inside it. The structure looks like this.
|+code/ |-repo1/ |--------|repo11/ |--------|--------repo111/ |+repo2/ |+repo3/
I set root path to code/ . And then, I can only find files in code/ , repo1/ , repo2/ and repo3/. How can I find files in repo11 or repo111 by ctrlP?