undo

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUndoForFinishedProgram

func CreateUndoForFinishedProgram(args CreateUndoProgramArgs) program.Program

creates the program for undoing a program that finished

func CreateUndoForRunningProgram

func CreateUndoForRunningProgram(args CreateUndoProgramArgs) (program.Program, error)

create the program to undo a currently running Git Town command

func Execute

func Execute(args ExecuteArgs) error

undoes the persisted runstate

Types

type CreateUndoProgramArgs

type CreateUndoProgramArgs struct {
	DryRun         bool
	HasOpenChanges bool
	NoPushHook     configdomain.NoPushHook
	Run            *git.ProdRunner
	RunState       runstate.RunState
}

type ExecuteArgs

type ExecuteArgs struct {
	FullConfig       *configdomain.FullConfig
	HasOpenChanges   bool
	InitialStashSize gitdomain.StashSize
	Lineage          configdomain.Lineage
	RootDir          gitdomain.RepoRootDir
	RunState         runstate.RunState
	Runner           *git.ProdRunner
	Verbose          bool
}

Directories

Path Synopsis
Package undobranches restores the Git branches to a known snapshot.
Package undobranches restores the Git branches to a known snapshot.
package undoconfig undoes changes to the configuration settings stored as Git metadata.
package undoconfig undoes changes to the configuration settings stored as Git metadata.
Package undostash restores changes to the Git stash.
Package undostash restores changes to the Git stash.

Jump to

Keyboard shortcuts

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