28 lines
810 B
Go
28 lines
810 B
Go
package structs
|
|
|
|
import (
|
|
"time"
|
|
|
|
"code.gitea.io/gitea/modules/git"
|
|
)
|
|
|
|
type BlameCommit struct {
|
|
ID string `json:"id"`
|
|
Author *git.Signature `json:"author"`
|
|
Commiter *git.Signature `json:"commiter"`
|
|
CommitMessage string `json:"commit_message"`
|
|
Parents []string `json:"parents"`
|
|
AuthoredTime time.Time `json:"authored_time"`
|
|
CommittedTime time.Time `json:"committed_time"`
|
|
CreatedTime time.Time `json:"created_time"`
|
|
}
|
|
|
|
type BlamePart struct {
|
|
Sha string `json:"-"`
|
|
Commit *BlameCommit `json:"commit"`
|
|
PreviousNumber int `json:"previous_number"`
|
|
CurrentNumber int `json:"current_number"`
|
|
EffectLine int `json:"effect_line"`
|
|
Lines []string `json:"lines"`
|
|
}
|