Versions in this module Expand all Collapse all v1 v1.0.0 Aug 4, 2016 Changes in this version + const GitDirectory + const SpreadDirectory + var ErrEmptyPath = errors.New("path must be specified") + var ErrNilObjectInfo = errors.New("an object's Info field cannot be nil") + var ErrPathNotDir = errors.New("a directory must be specified") + var GlobalPath = "~/.spread-global" + func GlobalLocation() (string, error) + type Person struct + Email string + Name string + When time.Time + type Project struct + Path string + func Global() (*Project, error) + func InitGlobal() (*Project, error) + func InitProject(target string) (*Project, error) + func OpenProject(target string) (*Project, error) + func (p *Project) AddDocumentToIndex(doc *pb.Document) error + func (p *Project) Branch(name string) (map[string]*pb.Document, error) + func (p *Project) CleanupWorkdir(dir string) error + func (p *Project) Commit(refname string, author, committer Person, message string) (commitOid string, err error) + func (p *Project) DocFromIndex(path string) (*pb.Document, error) + func (p *Project) Fetch(remoteName string, refspecs ...string) error + func (p *Project) FetchAnonymous(url string, refspecs ...string) error + func (p *Project) GetDocument(revision, path string) (*pb.Document, error) + func (p *Project) Head() (map[string]*pb.Document, error) + func (p *Project) Index() (docs map[string]*pb.Document, err error) + func (p *Project) Pull(remoteName, refspec string) error + func (p *Project) Push(remoteName string, refspecs ...string) error + func (p *Project) Remotes() *git.RemoteCollection + func (p *Project) ResolveCommit(revision string) (map[string]*pb.Document, error) + func (p *Project) TempWorkdir() (string, error)