Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/treeverse/dvc
/ get_gitignore_content
Function
get_gitignore_content
tests/utils/__init__.py:15–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
14
15
def
get_gitignore_content():
16
with
open(Git.GITIGNORE, encoding=
"utf-8"
)
as
gitignore:
17
return
gitignore.read().splitlines()
18
19
20
@contextmanager
Callers
7
test_gitignore_basic
Function · 0.90
test_gitignore_when_checkout
Function · 0.90
test_import_url_to_remote_absolute
Function · 0.90
test_remove
Function · 0.90
test_failed_add_cleanup
Function · 0.90
test_escape_gitignore_entries
Function · 0.90
test_add_with_out
Function · 0.90
Calls
2
open
Function · 0.85
read
Method · 0.45
Tested by
7
test_gitignore_basic
Function · 0.72
test_gitignore_when_checkout
Function · 0.72
test_import_url_to_remote_absolute
Function · 0.72
test_remove
Function · 0.72
test_failed_add_cleanup
Function · 0.72
test_escape_gitignore_entries
Function · 0.72
test_add_with_out
Function · 0.72