git

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilePerms = 0600
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

func NewHandler

func NewHandler() *Handler

func (*Handler) AddToGitignore

func (g *Handler) AddToGitignore(gitRoot, filePath string) error

func (*Handler) FindGitRoot

func (g *Handler) FindGitRoot(startPath string) (string, bool)

func (*Handler) IsFileIgnored

func (g *Handler) IsFileIgnored(gitignoreContent, filePath, gitRoot string) bool

func (*Handler) IsGitRepository

func (g *Handler) IsGitRepository(path string) bool

func (*Handler) ReadFile

func (g *Handler) ReadFile(path string) (string, error)

func (*Handler) ReadGitignore

func (g *Handler) ReadGitignore(gitRoot string) (string, error)

func (*Handler) WriteFile

func (g *Handler) WriteFile(path, content string) error

Jump to

Keyboard shortcuts

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