types

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzedBranch

type AnalyzedBranch struct {
	BranchInfo  // Embedded raw info
	IsMerged    bool
	IsOldByAge  bool
	IsProtected bool
	IsCurrent   bool // Added flag for current branch
	Category    BranchCategory
}

AnalyzedBranch contains processed branch info for UI and decisions.

type BranchCategory

type BranchCategory string

BranchCategory classifies a branch after analysis.

const (
	CategoryProtected   BranchCategory = "Protected"
	CategoryActive      BranchCategory = "Active"
	CategoryMergedOld   BranchCategory = "MergedOld"
	CategoryUnmergedOld BranchCategory = "UnmergedOld"
)

type BranchInfo

type BranchInfo struct {
	Name           string
	Upstream       string // e.g., "origin/feature/x"
	Remote         string // e.g., "origin"
	LastCommitDate time.Time
	CommitHash     string
}

BranchInfo holds raw Git data for a local branch.

type DeleteResult

type DeleteResult struct {
	BranchName string
	IsRemote   bool
	RemoteName string // Only if IsRemote is true
	Success    bool
	Message    string // Success message or error details
	Cmd        string // The command attempted
}

DeleteResult holds outcome of one delete attempt.

Jump to

Keyboard shortcuts

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