git

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diff

type Diff interface {
	AllChanges() []codeowners.DiffFile
	ChangesSince(ref string) ([]codeowners.DiffFile, error)
	Context() DiffContext
}

func NewDiff

func NewDiff(context DiffContext) (Diff, error)

func NewDiffWithExecutor added in v0.1.3

func NewDiffWithExecutor(context DiffContext, executor gitCommandExecutor) (Diff, error)

type DiffContext

type DiffContext struct {
	Base       string
	Head       string
	Dir        string
	IgnoreDirs []string
}

type GitDiff

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

func (*GitDiff) AllChanges

func (gd *GitDiff) AllChanges() []codeowners.DiffFile

func (*GitDiff) ChangesSince

func (gd *GitDiff) ChangesSince(ref string) ([]codeowners.DiffFile, error)

func (*GitDiff) Context

func (gd *GitDiff) Context() DiffContext

Jump to

Keyboard shortcuts

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