git

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateFileLine

func CalculateFileLine(diffLines []string, visualLineIndex int) int

func DiffCmd

func DiffCmd(targetBranch, path string) tea.Cmd

func DiffStats

func DiffStats(targetBranch string) (added int, deleted int, err error)

func DiffStatsByFile

func DiffStatsByFile(targetBranch string) (map[string][2]int, error)

func ExtractFileDiff

func ExtractFileDiff(diffText, targetPath string) string

func GetCurrentBranch

func GetCurrentBranch() string

func GetRepoName

func GetRepoName() string

func ListChangedFiles

func ListChangedFiles(targetBranch string) ([]string, error)

func OpenEditorCmd

func OpenEditorCmd(path string, lineNumber int, targetBranch string, editor string) tea.Cmd

func ParseFilesFromDiff

func ParseFilesFromDiff(diffText string) []string

Types

type DiffMsg

type DiffMsg struct{ Content string }

type EditorFinishedMsg

type EditorFinishedMsg struct{ Err error }

Jump to

Keyboard shortcuts

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