Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 (Branch) GeneratePreview ¶
GeneratePreview generates a lightweight preview of the branch
type Repository ¶
type Repository struct {
Path string
}
Repository provides git operations for a working directory
func NewRepository ¶
func NewRepository(path string) *Repository
NewRepository creates a Repository for the given path
func (*Repository) Branches ¶
func (r *Repository) Branches() ([]Branch, error)
Branches collects all git branches (local and remote) Lightweight version: does not fetch commit objects for performance
func (*Repository) IsRepo ¶
func (r *Repository) IsRepo() bool
IsRepo checks if the path is a git repository
Click to show internal directories.
Click to hide internal directories.