diff

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitDiffResult

type CommitDiffResult struct {
	OldCommit entity.Commit
	NewCommit entity.Commit
	FileDiffs []FileDiff
}

type DiffCommitsUseCase

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

func NewDiffCommitsUseCase

func NewDiffCommitsUseCase(commitRepo repository.CommitRepository, differService service.DifferService) *DiffCommitsUseCase

func (*DiffCommitsUseCase) Execute

func (uc *DiffCommitsUseCase) Execute(oldHash, newHash string) (CommitDiffResult, error)

type FileDiff

type FileDiff struct {
	FilePath   string
	OldContent string
	NewContent string
	DiffText   string
}

Jump to

Keyboard shortcuts

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