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

Struct Diff

internal/model/diff.go:7–18  ·  view source on GitHub ↗

Diff represents a single file change in a git diff.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected