Versions in this module Expand all Collapse all v0 v0.4.0 Feb 20, 2025 v0.3.5 Feb 5, 2025 Changes in this version + var ErrInvalidAddress = errors.New("invalid address") + var ErrLocalOperationFailed = errors.New("local git operation failed") + var ErrNotGitRepo = errors.New("not a git repository") + var ErrRemoteOperationFailed = errors.New("remote git operation failed") + type Address struct + Ext string + Host string + Path string + Protocol string + Type AddressType + User string + func ParseAddress(address string) (*Address, error) + type AddressType int + const AddressTypeGit + const AddressTypeHTTP + type Project struct + func NewProject(project config.Project, state state.State) (Project, error) + func (p Project) Repository() *Repository + type Repository struct + func (r Repository) Checkout(remote git.Remote, branch string) git.Checkout + func (r Repository) CommitChanges(message string) (*object.Commit, error) + func (r Repository) DeleteBranch(branch string) error + func (r Repository) Fetch(remote git.Remote) error + func (r Repository) ListRemote(remote git.Remote) ([]*plumbing.Reference, error) + func (r Repository) Merge(remote *git.Remote, branch string) error + func (r Repository) Push(remote git.Remote, refname plumbing.ReferenceName) error + func (r Repository) Remote(name string) (string, error)