yakdiff

package
v1.3.4-alpha10 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(raw1, raw2 any, handler ...DiffHandler) error

func DiffContext

func DiffContext(ctx context.Context, raw1, raw2 any, handler ...DiffHandler) error

func FileSystemDiffContext

func FileSystemDiffContext(ctx context.Context, fs1 filesys.FileSystem, fs2 filesys.FileSystem, handler ...DiffHandler) error

func GitHashDiffContext

func GitHashDiffContext(ctx context.Context, repo *git.Repository, hash1, hash2 string, handler ...DiffHandler) error

GitHashDiffContext compares the trees of two git commit hashes and processes the differences using the provided handlers.

Types

type DiffHandler

type DiffHandler func(*object.Commit, *object.Change, *object.Patch) error

Jump to

Keyboard shortcuts

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