Skip to content
Snippets Groups Projects
Commit ae645523 authored by Nick Thomas's avatar Nick Thomas
Browse files

Move indexer.Person to its own file

parent 05c4a49b
No related branches found
No related tags found
1 merge request!1Initial implementation of an elasticsearch indexer in Go
Loading
Loading
@@ -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"`
Loading
Loading
@@ -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
Loading
package indexer
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
}
func BuildPerson(p object.Signature) *Person {
return &Person{
Name: p.Name,
Email: p.Email,
//Time: // FIXME: work this out
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment