resolve

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShellWelcomeMessage = `` /* 355-byte string literal not displayed */

	AbortFileName = ".abort_rebase"
)

Variables

View Source
var (
	ErrAbort = fmt.Errorf("rebase aborted by user")
)

Functions

This section is empty.

Types

type Aborter

type Aborter struct{}

Aborter immediately aborts the rebase.

func (Aborter) Resolve

func (a Aborter) Resolve(*git.Worktree) error

type Blind

type Blind struct{}

Blind behaves as if there are no conflicts and simply stages the changes files without doing anything.

func (Blind) Resolve

func (b Blind) Resolve(wt *git.Worktree) error

type MergeResolver

type MergeResolver struct {
	Strategy ResolveStrategy
}

func (MergeResolver) Resolve

func (m MergeResolver) Resolve(wt *git.Worktree) error

type NoopResolver added in v0.0.1

type NoopResolver struct{}

func (NoopResolver) Resolve added in v0.0.1

func (n NoopResolver) Resolve(*git.Worktree) error

type ResolveStrategy

type ResolveStrategy int
const (
	StrategyOurs ResolveStrategy = iota
	StrategyTheirs
)

type Resolver

type Resolver interface {
	Resolve(*git.Worktree) error
}

Resolver defines how to handle conflicts between the stating and quarantine brnanches, and stages the conflicting files in git once resolved.

type Shell

type Shell struct {
	Logger  *slog.Logger
	Package *charts.Package
}

func (*Shell) Resolve

func (s *Shell) Resolve(wt *git.Worktree) error

Jump to

Keyboard shortcuts

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