undoconfig

package
v20.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package undoconfig undoes changes to the configuration settings stored as Git metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineUndoConfigProgram

func DetermineUndoConfigProgram(initialConfigSnapshot, finalConfigSnapshot ConfigSnapshot) program.Program

Types

type ConfigDiff

type ConfigDiff struct {
	Added   []configdomain.Key
	Changed map[configdomain.Key]undodomain.Change[string]
	Removed map[configdomain.Key]string
}

ConfigDiff describes changes made to the Git Town configuration.

func SingleCacheDiff

func SingleCacheDiff(before, after configdomain.SingleSnapshot) ConfigDiff

SingleCacheDiff provides a diff of the two given SingleCache instances.

type ConfigDiffs

type ConfigDiffs struct {
	Global ConfigDiff
	Local  ConfigDiff
}

ConfigDiffs describes the changes made to the local and global Git configuration.

func NewConfigDiffs

func NewConfigDiffs(before, after ConfigSnapshot) ConfigDiffs

func (ConfigDiffs) UndoProgram

func (self ConfigDiffs) UndoProgram() program.Program

type ConfigSnapshot

type ConfigSnapshot struct {
	Global configdomain.SingleSnapshot
	Local  configdomain.SingleSnapshot
}

ConfigSnapshot is a snapshot of the entire Git configuration at a particular point in time.

func EmptyConfigSnapshot

func EmptyConfigSnapshot() ConfigSnapshot

Jump to

Keyboard shortcuts

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