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

pop

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pop implements the pop command: delete the current branch while keeping its changes staged on the parent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(ctx context.Context, deps Deps) error

Action deletes the current branch but retains the state of files in the working tree.

Types

type Deps

type Deps struct {
	Engine Engine
	Out    output.Output
}

Deps are the collaborators pop needs. Adapters build them from their own runtime state; the action never sees bootstrap types.

type Engine

type Engine interface {
	validation.GitOperationEngine
	SoftReset(ctx context.Context, revision string) error
	CheckoutBranch(ctx context.Context, branch engine.Branch) error
	DeleteBranch(ctx context.Context, branch engine.Branch) error
}

Engine lists exactly the engine methods pop calls.

Jump to

Keyboard shortcuts

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