Documentation
¶
Index ¶
- func AddCommit(r *git.Repository, author string) error
- func Checkout(r *git.Repository, ref string, toBranch string, auth transport.AuthMethod) error
- func CloneRepository(path string, repoUrl string, auth transport.AuthMethod) (*git.Repository, error)
- func DiscardAllUnstagedChanges(r *git.Repository) error
- func OpenRepository(path string) (*git.Repository, error)
- func Push(r *git.Repository, auth transport.AuthMethod) error
- func TokenGenerator() string
- type RefSortOrder
- type RemoteRefConstraints
- type RemoteRefs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checkout ¶
func Checkout(r *git.Repository, ref string, toBranch string, auth transport.AuthMethod) error
func CloneRepository ¶
func CloneRepository(path string, repoUrl string, auth transport.AuthMethod) (*git.Repository, error)
func DiscardAllUnstagedChanges ¶
func DiscardAllUnstagedChanges(r *git.Repository) error
func OpenRepository ¶
func Push ¶
func Push(r *git.Repository, auth transport.AuthMethod) error
func TokenGenerator ¶
func TokenGenerator() string
Types ¶
type RefSortOrder ¶
type RefSortOrder byte
const ( RefSortOrderAscending RefSortOrder = iota RefSortOrderDescending )
type RemoteRefConstraints ¶
type RemoteRefConstraints struct { Include bool Sort bool SortOrder RefSortOrder }
type RemoteRefs ¶
func GetRemoteRefs ¶
func GetRemoteRefs( r *git.Repository, auth transport.AuthMethod, tagConstraints *RemoteRefConstraints, branchConstraints *RemoteRefConstraints) (remoteRefsList []*RemoteRefs, err error)
Click to show internal directories.
Click to hide internal directories.