git

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePreview

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

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

func IsGitRepo added in v0.1.3

func IsGitRepo() bool

IsGitRepo checks if the current directory is a git repository

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