()
| 39 | } |
| 40 | |
| 41 | func (c Commit) String() string { |
| 42 | return fmt.Sprintf( |
| 43 | "{ hash:%s author:%s <%s> date:%s merge:%v }", |
| 44 | c.Name(), |
| 45 | c.AuthorName, |
| 46 | c.AuthorEmail, |
| 47 | c.Date.Format("Jan 2, 2006"), |
| 48 | c.IsMerge, |
| 49 | ) |
| 50 | } |
| 51 | |
| 52 | // A file that was changed in a Commit. |
| 53 | type FileDiff struct { |
no test coverage detected