git

package
v0.0.0-...-ca58dd2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2018 License: GPL-3.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Sha1    string   `json:"sha1"`
	Title   string   `json:"title"`
	Body    string   `json:"body,omitempty"`
	Parents []string `json:"parents,omitempty"`
}
{
  type: 'git-update',
  repo: MsgId,
  repoBranch: [ MsgId ]?,
  refsBranch: [ MsgId ]?,
  refs: { <ref>: String|null }?,
  packs: [ BlobLink ]?,
  indexes: [ BlobLink ]?,
  head: string?,
  commits: [ {
    sha1: String,
    title: String,
    body: String?,
    parents: [ String ]?,
  } ]?,
  commits_more: Number?,
  num_objects: Number?,
  object_ids: [ String ]?,
}

type Repo

type Repo struct {
	Ref ssb.Ref
	// contains filtered or unexported fields
}

func Get

func Get(ds *ssb.DataStore, r ssb.Ref) *Repo

func (*Repo) Issues

func (repo *Repo) Issues() (issues []*ssb.SignedMessage)

func (*Repo) ListBlobs

func (repo *Repo) ListBlobs() (b []ssb.Ref)

func (*Repo) ListUpdates

func (repo *Repo) ListUpdates() (b []ssb.Ref)

func (*Repo) WantAll

func (repo *Repo) WantAll()

type RepoIssue

type RepoIssue struct {
	ssb.MessageBody
	Project ssb.Ref `json:"project"`
	Text    string  `json:"text"`
}

type RepoRoot

type RepoRoot struct {
	ssb.MessageBody
	Name string `json:"name"`
}

type RepoUpdate

type RepoUpdate struct {
	ssb.MessageBody
	Repo        ssb.Ref            `json:"repo"`
	RepoBranch  []ssb.Ref          `json:"repoBranch,omitempty"`
	RefsBranch  []ssb.Ref          `json:"refsBranch,omitempty"`
	Refs        map[ssb.Ref]string `json:"refs,omitempty"`
	Packs       []blobs.BlobLink   `json:"packs,omitempty"`
	Indexes     []blobs.BlobLink   `json:"indexes,omitempty"`
	Head        string             `json:"Head,omitempty"`
	Commits     []Commit           `json:"commits,omitempty"`
	CommitsMore int                `json:"commits_more,omitempty"`
	NumObjects  int                `json:"num_objects,omitempty"`
	ObjectIDs   []string           `json:"object_ids,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL