revisions

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidRevisionIndex = -1

Variables

This section is empty.

Functions

func IsInvalidRevision

func IsInvalidRevision(err error) bool

Types

type History

type History struct {
	Revisions []Revision
	// contains filtered or unexported fields
}

func BuildHistory

func BuildHistory(cwd string) (*History, error)

func (*History) ApplyRevision

func (h *History) ApplyRevision() error

func (*History) GotoRevision

func (h *History) GotoRevision(index int) error

func (*History) PopRevision

func (h *History) PopRevision()

func (*History) PushRevision

func (h *History) PushRevision(action string) (int, error)

func (*History) Undo

func (h *History) Undo() error

type Revision

type Revision struct {
	GoMod  string
	GoSum  string
	Action string
}

Jump to

Keyboard shortcuts

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