-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea: --only / --include flag? #219
Comments
Added support for the FILES=$(git diff --name-only --diff-filter=AM origin/master...HEAD); \
FLAGS=$(echo $FILES | sed 's/\(.*\)/--include "\1"/g'); \
echo $FLAGS $FILES | xargs -t madge |
@pahen any chance taking this in? In non-trivial apps it's almost crucial to be able to limit the scope of the graph. |
I temporarily categorize this as visualization filtering. |
I have just discovered Madge and it's just superb work!
It would be interesting for me, as I work on a Git branch, to understand how the files I've created relate to each other:
This command takes the added files as entry points, but shows their entire dependency graph. It would be great to limit it to the files I've sent as entry points.
If I understand correctly, the
exclude
option accepts a RegExp and I don't think I can use it.Would an
--only
option make sense? It would limit the set of consider files to the original input. Or, if that's too specific, maybe an--include
option (that you can use multiple time in a command), to supplement--exclude
?The text was updated successfully, but these errors were encountered: