Help us shape the future of Go! Take the 2026 Go Developer Survey

commits

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package commits implements the commits panel for grut. It displays commit history for a specific branch or worktree, driven by branch/worktree selection messages from other panels. Unlike gitlog (which always follows HEAD with graph rendering), this panel is selection-driven and shows a flat commit list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panel

type Panel struct {
	// contains filtered or unexported fields
}

Panel is the commits panel. It implements panels.Panel.

func New

func New(client gitOps) *Panel

New creates a new commits panel.

func (*Panel) Blur

func (p *Panel) Blur()

Blur implements panels.Panel.

func (*Panel) Focus

func (p *Panel) Focus()

Focus implements panels.Panel.

func (*Panel) Init

func (p *Panel) Init(ctx context.Context) tea.Cmd

--------------------------------------------------------------------------- panels.Panel interface --------------------------------------------------------------------------- Init implements panels.Panel.

func (*Panel) KeyBindings

func (p *Panel) KeyBindings() []panels.KeyBinding

KeyBindings implements panels.Panel.

func (*Panel) SetActionsCfg

func (p *Panel) SetActionsCfg(cfg config.ActionsConfig)

SetActionsCfg injects the actions configuration for right-click menus.

func (*Panel) SetSize

func (p *Panel) SetSize(width, height int)

SetSize implements panels.Panel.

func (*Panel) Title

func (p *Panel) Title() string

Title implements panels.Panel.

func (*Panel) Update

func (p *Panel) Update(msg tea.Msg) (panels.Panel, tea.Cmd)

Update implements panels.Panel.

func (*Panel) View

func (p *Panel) View(width, height int) string

View implements panels.Panel.

Jump to

Keyboard shortcuts

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