Documentation ¶
Index ¶
- func GetForkRemote(repo WorkTree) (forkRemote *git.Remote, err error)
- func GetRemoteUserName(remote *git.Remote) string
- func IsNothingToCommit(err error) bool
- func ReleaseTitle(branchName string) string
- type Branch
- type CheckoutOptions
- type NothingToCommit
- type RepoContent
- type SDKRepository
- type SpecRepository
- type WorkTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetForkRemote ¶
func GetRemoteUserName ¶
func GetRemoteUserName(remote *git.Remote) string
GetRemoteUserName https://github.com/githubName/azure-sdk-for-go.git
func IsNothingToCommit ¶
func ReleaseTitle ¶
Types ¶
type CheckoutOptions ¶
type CheckoutOptions git.CheckoutOptions
type NothingToCommit ¶
type NothingToCommit struct {
// contains filtered or unexported fields
}
func (*NothingToCommit) Error ¶
func (n *NothingToCommit) Error() string
type RepoContent ¶
type SDKRepository ¶
type SDKRepository interface { WorkTree CreateReleaseBranch(releaseBranchName string) error AddReleaseCommit(rpName, namespaceName, specHash, version string) error }
func CloneSDKRepository ¶
func CloneSDKRepository(repoUrl, commitID string) (SDKRepository, error)
func OpenSDKRepository ¶
func OpenSDKRepository(path string) (SDKRepository, error)
type SpecRepository ¶
func CloneSpecRepository ¶
func CloneSpecRepository(repoUrl, commitID string) (SpecRepository, error)
func OpenSpecRepository ¶
func OpenSpecRepository(path string) (SpecRepository, error)
type WorkTree ¶
type WorkTree interface { Root() string Add(path string) error Commit(message string) error Checkout(opt *CheckoutOptions) error CheckoutTag(tag string) error CreateBranch(branch *Branch) error DeleteBranch(name string) error CherryPick(commit string) error Stash() error StashPop() error Head() (*plumbing.Reference, error) Tags() (storer.ReferenceIter, error) Remotes() ([]*git.Remote, error) DeleteRemote(name string) error CreateRemote(c *config.RemoteConfig) (*git.Remote, error) Fetch(o *git.FetchOptions) error }
func CloneWorkTree ¶
func NewWorkTree ¶
Click to show internal directories.
Click to hide internal directories.