MCPcopy
hub / github.com/treeverse/dvc / is_git_ignored

Function is_git_ignored

dvc/dvcfile.py:58–65  ·  view source on GitHub ↗
(repo, path)

Source from the content-addressed store, hash-verified

56
57
58def is_git_ignored(repo, path):
59 from dvc.fs import LocalFileSystem
60 from dvc.scm import NoSCMError
61
62 try:
63 return isinstance(repo.fs, LocalFileSystem) and repo.scm.is_ignored(path)
64 except NoSCMError:
65 return False
66
67
68def check_dvcfile_path(repo, path):

Callers 2

check_dvcfile_pathFunction · 0.85
_is_git_ignoredMethod · 0.85

Calls 1

is_ignoredMethod · 0.80

Tested by

no test coverage detected