Skip to content

Commit

Permalink
Fixed #44.
Browse files Browse the repository at this point in the history
DiffContent.A/B/AB should be []string instead of string.
DiffIntralineInfo should be [][2]int.
  • Loading branch information
egorse committed Mar 8, 2018
1 parent e9ccf52 commit 3c4bc0f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ type RelatedChangeAndCommitInfo struct {

// DiffContent entity contains information about the content differences in a file.
type DiffContent struct {
A string `json:"a,omitempty"`
B string `json:"b,omitempty"`
AB string `json:"ab,omitempty"`
A []string `json:"a,omitempty"`
B []string `json:"b,omitempty"`
AB []string `json:"ab,omitempty"`
EditA DiffIntralineInfo `json:"edit_a,omitempty"`
EditB DiffIntralineInfo `json:"edit_b,omitempty"`
Skip int `json:"skip,omitempty"`
Expand All @@ -251,10 +251,7 @@ type CommentInput struct {
}

// DiffIntralineInfo entity contains information about intraline edits in a file.
type DiffIntralineInfo []struct {
SkipLength int
MarkLength int
}
type DiffIntralineInfo [][2]int

// ChangeInfo entity contains information about a change.
type ChangeInfo struct {
Expand Down

0 comments on commit 3c4bc0f

Please sign in to comment.