Documentation ¶ Index ¶ Variables func Commits(c Config) (string, error) type Config type Repo func New(path string) (*Repo, error) func (r *Repo) Add(revision []byte) func (r *Repo) Logs(format string) (string, error) func (r *Repo) Query(limiters []string) error func (r *Repo) Update() error Constants ¶ This section is empty. Variables ¶ View Source var Date, Base string Functions ¶ func Commits ¶ func Commits(c Config) (string, error) Types ¶ type Config ¶ type Config struct { Repo string Queries [][]string Format string } type Repo ¶ type Repo struct { Path string // contains filtered or unexported fields } func New ¶ func New(path string) (*Repo, error) func (*Repo) Add ¶ func (r *Repo) Add(revision []byte) func (*Repo) Logs ¶ func (r *Repo) Logs(format string) (string, error) func (*Repo) Query ¶ func (r *Repo) Query(limiters []string) error Query returns a list of revisions that match a set of queries. func (*Repo) Update ¶ added in v1.0.2 func (r *Repo) Update() error Update runs git pull on the repository. Source Files ¶ View all Source files repo.go Click to show internal directories. Click to hide internal directories.