switch to gomponents
1 file changed, 16 insertions(+), 12 deletions(-)
changed files
M git/diff.go → git/diff.go
@@ -25,20 +25,24 @@ IsNew bool IsDelete bool } +type Commit struct { + Message string + Author object.Signature + This string + Parent string +} + +type Stat struct { + FilesChanged int + Insertions int + Deletions int +} + // A nicer git diff representation. type NiceDiff struct { - Commit struct { - Message string - Author object.Signature - This string - Parent string - } - Stat struct { - FilesChanged int - Insertions int - Deletions int - } - Diff []Diff + Commit Commit + Stat Stat + Diff []Diff } func (g *GitRepo) Diff() (*NiceDiff, error) {