Source: golang-github-git-pkgs-gitignore Section: golang Maintainer: Debian Go Packaging Team Uploaders: Simon Josefsson , Build-Depends: debhelper-compat (= 13), dh-sequence-golang, dpkg-build-api (= 1), git , golang-any, Testsuite: autopkgtest-pkg-go Standards-Version: 4.7.4 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-git-pkgs-gitignore Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-git-pkgs-gitignore.git Homepage: https://github.com/git-pkgs/gitignore XS-Go-Import-Path: github.com/git-pkgs/gitignore Package: golang-github-git-pkgs-gitignore-dev Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, Description: matching paths against gitignore rules (Go library) A Go library for matching paths against gitignore rules. Pattern matching uses a direct wildmatch implementation (two-pointer backtracking, same algorithm as git's wildmatch.c) rather than compiling patterns to regexes or delegating to filepath.Match . * Wildmatch engine modeled on git's own wildmatch.c, tested against git's wildmatch test suite * Bracket expressions with ranges, negation, backslash escapes, and all 12 POSIX character classes ([:alnum:], [:alpha:], etc.) * Proper ** handling (zero or more directories, only when standalone between separators) * core.excludesfile support with XDG fallback * Automatic nested .gitignore discovery via NewFromDirectory and Walk * Negation patterns with correct last-match-wins semantics * Directory-only patterns (trailing /) with descendant matching * Match provenance via MatchDetail (which pattern, file, and line number matched) * Invalid pattern surfacing via Errors() * Literal suffix fast-reject for common patterns like *.log . This package contains the Go development library.