Documentation ¶
Index ¶
- func Diff(raw1, raw2 any, handler ...DiffHandler) error
- func DiffContext(ctx context.Context, raw1, raw2 any, handler ...DiffHandler) error
- func FileSystemDiffContext(ctx context.Context, fs1 fi.FileSystem, fs2 fi.FileSystem, ...) error
- func GitHashDiffContext(ctx context.Context, repo *git.Repository, hash1, hash2 string, ...) error
- type DiffHandler
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 fi.FileSystem, fs2 fi.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 ¶
Click to show internal directories.
Click to hide internal directories.