stevenjack / cig

Can I go? Checks all your git repos, reporting if any of them have changes or need to be pushed.
MIT License
83 stars 10 forks source link

Recursively search folders with a parameterized depth instead of walking #4

Open stevenjack opened 9 years ago

stevenjack commented 9 years ago

Problem

Currently using walk, which is inefficient as we're traversing all the nested folders and files within the ones specified in ~/.cig.yaml.

Solution

Recursively search the folders up to a predetermined depth (say 5 for example) which can be overridden from the command line, for example:

$: cig -t work -d 10

JakeChampion commented 8 years ago

This issue has lessened for some of my repositories since NPM version 3 came out and defaulted to flattening the dependency tree as much as possible. However, instead of their being a deep tree, there is now a wide, shallow tree.

I think this feature is in some way related to https://github.com/stevenjack/cig/issues/30.