MCPcopy Index your code
hub / github.com/denormal/go-gitignore

github.com/denormal/go-gitignore @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
181 symbols 568 edges 27 files 167 documented · 92% 3 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

Pattern (Interface)
Pattern represents per-line patterns within a .gitignore file [5 implementers]
pattern.go
Cache (Interface)
Cache is the interface for the GitIgnore cache [1 implementers]
cache.go
Match (Interface)
Match represents the interface of successful matches against a .gitignore pattern set. A Match can be queried to determi [1 …
match.go
Parser (Interface)
Parser is the interface for parsing .gitignore files and extracting the set of patterns specified in the .gitignore file [1 …
parser.go
Lexer (Interface)
lexer{} Lexer is the interface to the lexical analyser for .gitignore files [1 implementers]
lexer.go
GitIgnore (Interface)
GitIgnore is the interface to .gitignore files and repositories. It defines methods for testing files for matching the . [1 …
gitignore.go
Error (Interface)
(no doc) [1 implementers]
error.go

Core symbols most depended-on inside this repo

Name
called by 26
token.go
Position
called by 18
match.go
Match
called by 15
pattern.go
NewError
called by 13
error.go
Underlying
called by 11
error.go
unread
called by 11
lexer.go
token
called by 10
lexer.go
String
called by 9
match.go

Shape

Method 88
Function 65
Struct 19
Interface 7
TypeAlias 2

Languages

Go100%

Modules by API surface

parser.go22 symbols
lexer.go21 symbols
pattern.go19 symbols
gitignore.go18 symbols
repository_test.go17 symbols
repository.go8 symbols
gitignore_test.go8 symbols
util_test.go7 symbols
parser_test.go7 symbols
match_test.go7 symbols
error.go7 symbols
cache.go7 symbols

Used by 3 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add go-gitignore \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page