Skip to content

ignore-check for DVC? #4260

@karajan1001

Description

@karajan1001

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions