resolve

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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