Documentation ¶
Index ¶
- func CurrentBranch(projectRoot string) (string, error)
- func GetVersion() string
- type CloneOptions
- type HostKeyError
- type RawCommit
- type RawRepository
- func (r *RawRepository) Checkout(ref string) error
- func (r *RawRepository) Clean() error
- func (r *RawRepository) GetCommitInfo(sha string) (*RawCommit, error)
- func (r *RawRepository) GetCurrentCommitInfo() (*RawCommit, error)
- func (r *RawRepository) GetDefaultBranch() (string, error)
- func (r *RawRepository) GetDescribe() string
- func (r *RawRepository) GetDescribeAll() string
- func (r *RawRepository) GetTotalCommits() uint64
- func (r *RawRepository) IsDirty() bool
- type Repository
- type SSHKeyError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentBranch ¶
func GetVersion ¶
func GetVersion() string
Types ¶
type CloneOptions ¶
type HostKeyError ¶
type HostKeyError string
func (HostKeyError) Error ¶
func (s HostKeyError) Error() string
type RawRepository ¶
type RawRepository struct { Repository *Repository Directory string sync.RWMutex }
func Clone ¶
func Clone( r *Repository, cloneOpts *CloneOptions, directory string, writer io.Writer, ) (*RawRepository, error)
func (*RawRepository) Checkout ¶
func (r *RawRepository) Checkout(ref string) error
func (*RawRepository) Clean ¶
func (r *RawRepository) Clean() error
func (*RawRepository) GetCommitInfo ¶
func (r *RawRepository) GetCommitInfo(sha string) (*RawCommit, error)
func (*RawRepository) GetCurrentCommitInfo ¶
func (r *RawRepository) GetCurrentCommitInfo() (*RawCommit, error)
func (*RawRepository) GetDefaultBranch ¶
func (r *RawRepository) GetDefaultBranch() (string, error)
func (*RawRepository) GetDescribe ¶
func (r *RawRepository) GetDescribe() string
func (*RawRepository) GetDescribeAll ¶
func (r *RawRepository) GetDescribeAll() string
func (*RawRepository) GetTotalCommits ¶
func (r *RawRepository) GetTotalCommits() uint64
func (*RawRepository) IsDirty ¶
func (r *RawRepository) IsDirty() bool
type Repository ¶
type SSHKeyError ¶
type SSHKeyError string
func (SSHKeyError) Error ¶
func (s SSHKeyError) Error() string
Click to show internal directories.
Click to hide internal directories.