migrate

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INI_SECTION     = `remote "origin"`
	INI_PROPERTY    = "url"
	GIT_CONFIG_FILE = ".git/config"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GitConfigMap

type GitConfigMap struct {
	CurrentOrigin  Origin
	ReplacedOrigin Origin
	File           string
	// contains filtered or unexported fields
}

type Migrate

type Migrate struct {
	// contains filtered or unexported fields
}

func New

func New(find, replace string, log log.Loggeriface) Migrate

func (Migrate) ReplaceConfigOrigin

func (m Migrate) ReplaceConfigOrigin(parentDir string) error

ReplaceConfigOrigin identifies all .git/configs in a directory recursively loads the INI config file and attemps to perform a replacement

type Origin

type Origin string

func (Origin) Replace

func (o Origin) Replace(find, replace string) string

Jump to

Keyboard shortcuts

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