Documentation
¶
Index ¶
- type AuthenticationError
- type BranchNotFoundError
- type DirtyWorkingTreeError
- type Git
- func (g *Git) Add(filename string) error
- func (g *Git) AddAll() error
- func (g *Git) AddMultiple(filenames []string) error
- func (g *Git) Checkout(branch string) error
- func (g *Git) Clone(url string) error
- func (g *Git) Commit(message string) error
- func (g *Git) CreateBranch(branch string) error
- func (g *Git) DeleteBranch(branch string, force bool) error
- func (g *Git) Fetch(remote string) error
- func (g *Git) GetCommitMessage(ref string) (string, error)
- func (g *Git) GetCommitTitle(ref string) (string, error)
- func (g *Git) GetCurrentBranchPublic() (string, error)
- func (g *Git) GetRemoteURL(remote string) (string, error)
- func (g *Git) GetStatus() (*StatusInfo, error)
- func (g *Git) HasChanges() (bool, error)
- func (g *Git) HasRemote() bool
- func (g *Git) Init() error
- func (g *Git) IsRepo() bool
- func (g *Git) ListBranches() ([]string, error)
- func (g *Git) Pull() error
- func (g *Git) Push() error
- func (g *Git) PushBranch(branch string) error
- func (g *Git) Remove(filename string) error
- func (g *Git) SetRemote(name, url string) error
- type GitCommandError
- type InvalidRemoteURLError
- type MergeConflictError
- type NetworkError
- type RemoteNotFoundError
- type RepoNotFoundError
- type StatusInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationError ¶
func (*AuthenticationError) Error ¶
func (e *AuthenticationError) Error() string
func (*AuthenticationError) Unwrap ¶
func (e *AuthenticationError) Unwrap() error
type BranchNotFoundError ¶
type BranchNotFoundError struct {
BranchName string
}
func (*BranchNotFoundError) Error ¶
func (e *BranchNotFoundError) Error() string
type DirtyWorkingTreeError ¶
type DirtyWorkingTreeError struct {
Files []string
}
func (*DirtyWorkingTreeError) Error ¶
func (e *DirtyWorkingTreeError) Error() string
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func (*Git) AddMultiple ¶
func (*Git) CreateBranch ¶ added in v1.0.48
func (*Git) DeleteBranch ¶ added in v1.0.48
func (*Git) GetCommitMessage ¶ added in v1.0.48
func (*Git) GetCommitTitle ¶ added in v1.0.48
func (*Git) GetCurrentBranchPublic ¶ added in v1.0.48
func (*Git) GetRemoteURL ¶ added in v1.0.48
func (*Git) GetStatus ¶
func (g *Git) GetStatus() (*StatusInfo, error)
func (*Git) HasChanges ¶ added in v1.0.48
func (*Git) ListBranches ¶ added in v1.0.48
func (*Git) PushBranch ¶ added in v1.0.48
type GitCommandError ¶
func (*GitCommandError) Error ¶
func (e *GitCommandError) Error() string
func (*GitCommandError) Unwrap ¶
func (e *GitCommandError) Unwrap() error
type InvalidRemoteURLError ¶
type InvalidRemoteURLError struct {
URL string
}
func (*InvalidRemoteURLError) Error ¶
func (e *InvalidRemoteURLError) Error() string
type MergeConflictError ¶
type MergeConflictError struct {
Files []string
}
func (*MergeConflictError) Error ¶
func (e *MergeConflictError) Error() string
type NetworkError ¶
func (*NetworkError) Error ¶
func (e *NetworkError) Error() string
func (*NetworkError) Unwrap ¶
func (e *NetworkError) Unwrap() error
type RemoteNotFoundError ¶
type RemoteNotFoundError struct {
RemoteName string
}
func (*RemoteNotFoundError) Error ¶
func (e *RemoteNotFoundError) Error() string
type RepoNotFoundError ¶
type RepoNotFoundError struct {
Path string
}
func (*RepoNotFoundError) Error ¶
func (e *RepoNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.