git

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxDiffSize = 4096 // Limit to 4KB to prevent overwhelming LLM
)

Variables

This section is empty.

Functions

func GetDifferences

func GetDifferences() (string, error)

GetDifferences retrieves staged differences, truncating if needed.

Types

type DiffResult

type DiffResult struct {
	Files []string
	Diff  string
}

DiffResult encapsulates the staged diff results

func FetchStagedDiff

func FetchStagedDiff() (*DiffResult, error)

FetchStagedDiff retrieves staged changes using `--patch --compact-summary` for better output.

Jump to

Keyboard shortcuts

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