Help us shape the future of Go! Take the 2026 Go Developer Survey

gitignore

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

gitignore package provides functions to load global and system gitignore file patterns, it's a portion of https://github.com/go-git/go-git/blob/main/plumbing/format/gitignore/dir.go to include global ignore files ~/.gitignore and ~/.config/git/ignore, remove this until https://github.com/go-git/go-git/issues/1210 is fixed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadGlobalIgnoreFile

func LoadGlobalIgnoreFile() ([]gitignore.Pattern, error)

LoadGlobalIgnoreFile loads the global gitignore files, ~/.gitignore and ~/.config/git/ignore.

func LoadGlobalPatterns

func LoadGlobalPatterns() ([]gitignore.Pattern, error)

LoadGlobalPatterns loads the global gitignore patterns.

func LoadSystemPatterns

func LoadSystemPatterns() ([]gitignore.Pattern, error)

LoadSystemPatterns loads the system gitignore patterns.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL