open-code-review/internal/model/diff.go
2026-05-20 22:03:52 +08:00

14 lines
468 B
Go

package model
// Diff represents a single file change in a git diff.
type Diff struct {
OldPath string `json:"old_path"`
NewPath string `json:"new_path"`
Diff string `json:"diff"`
NewFileContent string `json:"new_file_content"`
IsBinary bool `json:"is_binary"`
IsDeleted bool `json:"is_deleted"`
IsNew bool `json:"is_new"`
Insertions int64 `json:"insertions"`
Deletions int64 `json:"deletions"`
}