git

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBranch

func FormatBranch(b Branch) string

FormatBranch formats a branch entry for display in the TUI list

func GeneratePreview

func GeneratePreview(branch Branch, width, height int) string

GeneratePreview generates a preview of the branch for the TUI preview window

func RunBranchSearch

func RunBranchSearch()

RunBranchSearch runs the interactive git branch search

Types

type Branch

type Branch struct {
	Name              string
	IsCurrent         bool
	IsRemote          bool
	LastCommit        string
	LastCommitMessage string
	CommitDate        string
}

Branch represents a git branch

func CollectBranches

func CollectBranches() []Branch

CollectBranches collects all git branches (local and remote)

Jump to

Keyboard shortcuts

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