git

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 5 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 lightweight preview of the branch

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
	CommitTimestamp   int64 // Unix timestamp for recency scoring
}

Branch represents a git branch

func CollectBranches

func CollectBranches() []Branch

CollectBranches collects all git branches (local and remote) Lightweight version: does not fetch commit objects for performance

Jump to

Keyboard shortcuts

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