Documentation
¶
Overview ¶
Package git provides Git repository operations and types for the gh-compare CLI extension.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CompareRequest ¶
type CompareRequest struct {
BaseBranch string
HeadBranch string
Repository *Repository
CustomFormat string
}
func (*CompareRequest) BuildArgument ¶
func (c *CompareRequest) BuildArgument() string
type Repository ¶
func NewRepository ¶
func NewRepository(path string) (*Repository, error)
func (*Repository) GetDefaultBranch ¶
func (r *Repository) GetDefaultBranch() (string, error)
func (*Repository) GetOriginOwner ¶
func (r *Repository) GetOriginOwner() (string, error)
func (*Repository) HasRemote ¶
func (r *Repository) HasRemote(name string) bool
Click to show internal directories.
Click to hide internal directories.