rerere

package
v0.17.15 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureEnabled

func EnsureEnabled(ctx context.Context, runner git.Runner, interactive bool, pauser Pauser) (bool, error)

EnsureEnabled offers to enable git rerere for this repository. It never prompts when interactive is false or the user previously declined.

When rerere.enabled is already true, it still ensures rerere.autoupdate is true — stackit's auto-continue loop (see internal/git/rebase.go) relies on rerere staging resolutions itself, and silently no-ops when autoupdate is off.

If pauser is non-nil, it is paused around the confirmation prompt so a surrounding TUI does not contend for stdin/stdout.

Types

type ConfirmFunc

type ConfirmFunc func(prompt string, defaultValue bool) (bool, error)

ConfirmFunc prompts the user for a yes/no answer. Matches the signature of tui.PromptConfirm.

type Pauser

type Pauser interface {
	Pause()
	Resume()
}

Pauser releases and restores an active TUI so a prompt can read the terminal without contending with a running Bubble Tea program.

Jump to

Keyboard shortcuts

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