Skip to content
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

Filter input - only files with same relative paths #550

Open
james-cook opened this issue Jan 24, 2022 · 1 comment
Open

Filter input - only files with same relative paths #550

james-cook opened this issue Jan 24, 2022 · 1 comment

Comments

@james-cook
Copy link

Is there any way to filter input to allow only files with same relative paths through.
Something like the existing --match-basename but for paths?

i.e. a duplicate file is only found if it shares the same relative path - with an option such as --match-dirname...

Pseudo code:
rmlint <other options> --keep-all-tagged --match-dirname --match-basename DIR1 // DIR2

(This would only work/make sense with tagging I think, and --must-match-tagged would not be needed in this case as files must have the same relative path in any case)

@ttyusupov
Copy link

@james-cook , I've implemented something like this here: #640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants