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
Click to show internal directories.
Click to hide internal directories.