Skip to content
Snippets Groups Projects

Initial implementation of an elasticsearch indexer in Go

Merged Nick Thomas requested to merge 1-initial-implementation into master
All threads resolved!
2 files
+ 19
14
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 0
14
@@ -6,12 +6,6 @@ import (
"srcd.works/go-git.v4/plumbing/object"
)
type Person struct {
Name string `json:"name"`
Email string `json:"email"`
Time string `json:"time"` // %Y%m%dT%H%M%S%z
}
type Commit struct {
Author *Person `json:"author"`
Committer *Person `json:"commiter"`
@@ -21,14 +15,6 @@ type Commit struct {
SHA string `json:"sha"`
}
func BuildPerson(p object.Signature) *Person {
return &Person{
Name: p.Name,
Email: p.Email,
//Time: // FIXME: work this out
}
}
func BuildCommit(c *object.Commit, repoID string) *Commit {
sha := c.Hash.String()
Loading