mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
14 lines
468 B
Go
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"`
|
|
}
|