Versions in this module Expand all Collapse all v1 v1.1.5 Aug 23, 2024 Changes in this version + func Info(format string, args ...interface{}) + type Option func(c *Repository) error + func Author(username, email string) Option + func Branch(branch string) Option + func EmbeddedToken(token string) Option + func Preserve() Option + func Root(root string) Option + func SSHKey(key string) Option + func Temporary() Option + func Token(token string) Option + func URL(url string) Option + type Repository struct + func New(ctx context.Context, options ...Option) (c *Repository, err error) + func (c *Repository) Checkout(branchName string) error + func (c *Repository) Commit(message string, files string) error + func (c *Repository) Dir() string + func (c *Repository) Fetch() error + func (c *Repository) Pull() error + func (c *Repository) Push() error + func (c *Repository) Repo() *git.Repository + func (c *Repository) Root() string + func (r *Repository) ListBranches(fetch bool) (branches []string, fetchErr error, err error)