MCPcopy Create free account
hub / github.com/denormal/go-gitignore / NewRepositoryWithFile

Function NewRepositoryWithFile

repository.go:39–64  ·  view source on GitHub ↗

NewRepository() NewRepositoryWithFile returns a GitIgnore instance representing a git repository with root directory base. The repository will use file as the name of the files within the repository from which to load the .gitignore patterns. If file is the empty string, NewRepositoryWithFile uses "

(base, file string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

NewRepositoryFunction · 0.85

Calls 4

PositionMethod · 0.95
UnderlyingMethod · 0.95
NewRepositoryWithErrorsFunction · 0.85
ZeroMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…