undoconfig

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: 4 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   []gitconfig.Key
	Changed map[gitconfig.Key]undodomain.Change[string]
	Removed map[gitconfig.Key]string
}

ConfigDiff describes changes made to the Git Town configuration.

func SingleCacheDiff

func SingleCacheDiff(before, after gitconfig.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 gitconfig.SingleSnapshot
	Local  gitconfig.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