aspiers / git-deps

git commit dependency analysis tool
GNU General Public License v2.0
298 stars 47 forks source link

graph: support recursion #16

Open aspiers opened 9 years ago

aspiers commented 9 years ago

Every query submitted, whether via the form or by clicking on a plus icon to expand (see #15) should have the option of recursing to a given level rather than just discovering immediate dependencies.

aspiers commented 9 years ago

I thought of a good UI for this which would allow clean resolution of #32 as well: you could repeatedly click a plus sign as many times as you want, and each time would add another level of recursion. Then a minus sign icon could reverse that. We'd need to keep track of the recursion level from each node, and do reference counting for removal. So if you clicked a node's plus icon 3 times, all its immediate dependencies would have a recursion level of 2, and their dependencies would have a recursion level of 1. Any node with a recursion level of 0 would have an 'x' delete icon instead of a minus sign icon.

aspiers commented 9 years ago

And there could be a third icon for adding that commit to the exclude list.