migrate

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INI_SECTION  = `remote "origin"`
	INI_PROPERTY = "url"
)

Variables

View Source
var (
	GIT_CONFIG_FILE = ""
)

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