1package git23// Blame contains information of a Git file blame.4type Blame struct {5 lines []*Commit6}78// Line returns the commit by given line number (1-based). It returns nil when9// no such line.10func (b *Blame) Line(i int) *Commit {11 if i <= 0 || len(b.lines) < i {12 return nil13 }14 return b.lines[i-1]15}