viewer

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToOpenRepo = errors.New("failed to open repository")
	ErrFailedToGetHead  = errors.New("failed to get head")
)
View Source
var (
	ErrFailedToGetLocalBranches = errors.New("failed to get local branches")
)

Functions

func NewGogitViewer

func NewGogitViewer() *gogitViewer

Types

type Viewer

type Viewer interface {
	GetLocalBranches(context.Context) (model.LocalBranches, error)
	FilterLocalBranches(ctx context.Context, branches model.LocalBranches, filters ...filter.Filter) []model.Branch
}

Jump to

Keyboard shortcuts

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