all repos — elgit @ 74eea2ebbccc8458b5b62002d281b2b49f5c30c4

fork of legit: web frontend for git, written in go

switch to gomponents

Alan Pearce
commit

74eea2ebbccc8458b5b62002d281b2b49f5c30c4

parent

776a7b0dafa651c5ba71381608e9726d9756c3b1

1 file changed, 16 insertions(+), 12 deletions(-)

changed files
M git/diff.gogit/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) {