Documentation ¶
Index ¶
- func Add(repo Repository) *execabs.Cmd
- func CheckoutHead(repo Repository) *execabs.Cmd
- func ConfigAutocorrect(repo Repository) *execabs.Cmd
- func ConfigSSLVerify(repo Repository) *execabs.Cmd
- func ConfigUserEmail(repo Repository) *execabs.Cmd
- func ConfigUserName(repo Repository) *execabs.Cmd
- func EmptyCommit(repo Repository) *execabs.Cmd
- func FetchSource(repo Repository) *execabs.Cmd
- func ForceAdd(repo Repository) *execabs.Cmd
- func ForceCommit(repo Repository) *execabs.Cmd
- func Init(repo Repository) *execabs.Cmd
- func IsDirty(repo Repository) bool
- func RemoteAdd(repo Repository) *execabs.Cmd
- func RemotePush(repo Repository) *execabs.Cmd
- func RemoteRemove(repo Repository) *execabs.Cmd
- func Status(repo Repository) *execabs.Cmd
- func TestCleanTree(repo Repository) *execabs.Cmd
- func WriteNetrc(machine, login, password string) error
- func WriteSSHKey(privateKey string) error
- type Author
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutHead ¶
func CheckoutHead(repo Repository) *execabs.Cmd
CheckoutHead handles branch checkout.
func ConfigAutocorrect ¶
func ConfigAutocorrect(repo Repository) *execabs.Cmd
repoUserEmail sets the global git author email.
func ConfigSSLVerify ¶
func ConfigSSLVerify(repo Repository) *execabs.Cmd
repoSSLVerify disables globally the git ssl verification.
func ConfigUserEmail ¶
func ConfigUserEmail(repo Repository) *execabs.Cmd
repoUserEmail sets the global git author email.
func ConfigUserName ¶
func ConfigUserName(repo Repository) *execabs.Cmd
repoUserName sets the global git author name.
func EmptyCommit ¶
func EmptyCommit(repo Repository) *execabs.Cmd
EmptyCommit simply create an empty commit.
func FetchSource ¶
func FetchSource(repo Repository) *execabs.Cmd
FetchSource fetches the source from remote.
func ForceAdd ¶
func ForceAdd(repo Repository) *execabs.Cmd
ForceAdd forces the addition of all dirty files.
func ForceCommit ¶
func ForceCommit(repo Repository) *execabs.Cmd
ForceCommit commits every change while skipping CI.
func Init ¶
func Init(repo Repository) *execabs.Cmd
RemoteRemove drops the defined remote from a git repo.
func IsDirty ¶
func IsDirty(repo Repository) bool
func RemoteAdd ¶
func RemoteAdd(repo Repository) *execabs.Cmd
RemoteAdd adds an additional remote to a git repo.
func RemotePush ¶
func RemotePush(repo Repository) *execabs.Cmd
RemotePush pushs the changes from the local head to a remote branch.
func RemoteRemove ¶
func RemoteRemove(repo Repository) *execabs.Cmd
RemoteRemove drops the defined remote from a git repo.
func Status ¶
func Status(repo Repository) *execabs.Cmd
func TestCleanTree ¶
func TestCleanTree(repo Repository) *execabs.Cmd
TestCleanTree returns non-zero if diff between index and local repository.
func WriteNetrc ¶
WriteNetrc writes the netrc file.