Documentation
¶
Index ¶
- type Repository
- func (r *Repository) CurrentBranch() (string, error)
- func (r *Repository) DefaultBranch() (string, error)
- func (r *Repository) DiffAgainstDefault() (string, error)
- func (r *Repository) GetChangedFiles() ([]string, error)
- func (r *Repository) GetRemoteURL() (string, error)
- func (r *Repository) PushCurrentBranch() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(path string) *Repository
func (*Repository) CurrentBranch ¶
func (r *Repository) CurrentBranch() (string, error)
func (*Repository) DefaultBranch ¶
func (r *Repository) DefaultBranch() (string, error)
func (*Repository) DiffAgainstDefault ¶
func (r *Repository) DiffAgainstDefault() (string, error)
func (*Repository) GetChangedFiles ¶
func (r *Repository) GetChangedFiles() ([]string, error)
func (*Repository) GetRemoteURL ¶
func (r *Repository) GetRemoteURL() (string, error)
func (*Repository) PushCurrentBranch ¶
func (r *Repository) PushCurrentBranch() error
Click to show internal directories.
Click to hide internal directories.