git

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDiffStaged

func GetDiffStaged(ctx context.Context, extraExcludeFiles []string) (string, error)

GetDiffStaged retrieves the optimized git diff for staged changes with exclusions

Types

type GitService

type GitService interface {
	GetDiff(ctx context.Context) (string, error)
	StageAll(ctx context.Context) error
	StageFiles(ctx context.Context, files []string) error
}

GitService defines the interface for git operations

func NewGitService

func NewGitService(excludeFiles ...string) GitService

NewGitService creates a new GitService

Jump to

Keyboard shortcuts

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