ghq
ghq copied to clipboard
`ghq list` is slow when a root directory contains directories which are not managed by any VCS.
ghq list
is slow when a root directory contains directories which are not managed by any VCS.
It seems that ghq list
walks directory until it find a VCS configuration like .git
directory.
It would be helpful if ghq could give some kind of warning when it hits directories which are not managed by VCSs.
Versions
ghq -v
ghq version 1.2.1 (rev:dd139fb)
Maybe a setting to ignore all directories without a specific VCS subdir like .git
would be nice
Quick alternative: find $(ghq root) -maxdepth 4 -type d -name .git -printf '%P\n' | xargs -n1 dirname
(Change 4
to your suitable value)
Quick alternative:
find $(ghq root) -maxdepth 4 -type d -name .git -printf '%P\n' | xargs -n1 dirname
Saved my day!