repo

package
v0.0.0-...-8e52f75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetForkRemote

func GetForkRemote(repo WorkTree) (forkRemote *git.Remote, err error)

func GetRemoteUserName

func GetRemoteUserName(remote *git.Remote) string

GetRemoteUserName https://github.com/githubName/azure-sdk-for-go.git

func IsNothingToCommit

func IsNothingToCommit(err error) bool

func ReleaseTitle

func ReleaseTitle(branchName string) string

Types

type Branch

type Branch config.Branch

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 RepoContent map[string]exports.Content

func (*RepoContent) Print

func (r *RepoContent) Print(o io.Writer) error

Print prints the RepoContent to a Writer as JSON string

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

type SpecRepository interface {
	WorkTree
	LastHead() *plumbing.Reference
}

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 CloneWorkTree(repoURL, workingPath string) (WorkTree, error)

func NewWorkTree

func NewWorkTree(path string) (WorkTree, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL