Skip to content

ignore-check for DVC? #4260

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

Closed
karajan1001 opened this issue Jul 22, 2020 · 2 comments
Closed

ignore-check for DVC? #4260

karajan1001 opened this issue Jul 22, 2020 · 2 comments

Comments

@karajan1001
Copy link
Contributor

karajan1001 commented Jul 22, 2020

In #4249 #4110 #4103 etc. We need to check if some files were ignored or not.
Current solutions are something like,

python -c "from dvc.repo import Repo;print(list(Repo().tree.walk_files('data')))"
# or 
dvc pull -v subdata1.dvc | grep "xml"
# etc. 

These unofficial usages are neither elegant nor detailed. While a git ignore-check can tell you which pattern matches and finally influences your file.
image
This is helpful when we are writing some complex .dvcignore patterns or debugging.

@skshetry
Copy link
Collaborator

@karajan1001, is this the duplicate of #3736?

@karajan1001
Copy link
Contributor Author

@skshetry Haha, I didn't know there already has been one.

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