yowko / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Add option to limit dirname display by directory depth #166

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I try to visualize a project with a LOT of folders and subfolders. This 
clutters up the output of gource to the point where one can hardly recognize a 
thing anymore, even with filenames hidden.

Not all of the directory names are equally interesting, though: The directories 
closer to . divide the code in semantically different parts (e.g., 
./packages/io/, ./packages/encryptor/, ./buildTools/), whereas the directory 
names further below merely separate subentities (e.g., 
./packages/encryptor/method1/test, ./packages/encryptor/method1/src, ...). One 
could say that this is the idea with subfolders.

As a way to get rid of the clutter, I would hence like to suggest a new option 
to gource that specifies the directory depth until where the directory names 
are shown. By default, this could be -1 to indicate infinity (much like 
--max-file-lag does). By '--max-dirname-depth=0', this would incorporate the 
-'-hide dirnames' directive.

Original issue reported on code.google.com by nico.sch...@gmail.com on 18 Aug 2012 at 8:51