MCPcopy Create free account
hub / github.com/alibaba/open-code-review / Diff

Struct Diff

internal/model/diff.go:4–15  ·  view source on GitHub ↗

Diff represents a single file change in a git diff.

Source from the content-addressed store, hash-verified

2
3// Diff represents a single file change in a git diff.
4type Diff struct {
5 OldPath string `json:"old_path"`
6 NewPath string `json:"new_path"`
7 Diff string `json:"diff"`
8 NewFileContent string `json:"new_file_content"`
9 IsBinary bool `json:"is_binary"`
10 IsDeleted bool `json:"is_deleted"`
11 IsNew bool `json:"is_new"`
12 IsRenamed bool `json:"is_renamed"`
13 Insertions int64 `json:"insertions"`
14 Deletions int64 `json:"deletions"`
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected