Documentation
¶
Index ¶
- func Add(ctx context.Context) *exec.Cmd
- func EmptyCommit(ctx context.Context, msg string, noVerify bool, authorName, authorEmail string) *exec.Cmd
- func ForceAdd(ctx context.Context) *exec.Cmd
- func ForceCommit(ctx context.Context, msg string, noVerify bool, authorName, authorEmail string) *exec.Cmd
- func GlobalName(ctx context.Context, author string) *exec.Cmd
- func GlobalUser(ctx context.Context, email string) *exec.Cmd
- func RemoteAdd(ctx context.Context, name, url string) *exec.Cmd
- func RemotePullRebaseNamedBranch(ctx context.Context, remote, branch string) *exec.Cmd
- func RemotePush(ctx context.Context, remote, branch string, force, followtags bool) *exec.Cmd
- func RemotePushMirror(ctx context.Context, remote string) *exec.Cmd
- func RemotePushNamedBranch(ctx context.Context, remote, localbranch, branch string, ...) *exec.Cmd
- func RemoteRemove(ctx context.Context, name string) *exec.Cmd
- func SkipVerify(ctx context.Context) *exec.Cmd
- func Tag(ctx context.Context, tag string) *exec.Cmd
- func TestCleanTree(ctx context.Context) *exec.Cmd
- func WriteKey(privateKey string) error
- func WriteNetrc(machine, login, password string) error
- func WriteToken(remote, login, password string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyCommit ¶
func EmptyCommit( ctx context.Context, msg string, noVerify bool, authorName, authorEmail string, ) *exec.Cmd
EmptyCommit simply create an empty commit
func ForceCommit ¶
func ForceCommit( ctx context.Context, msg string, noVerify bool, authorName, authorEmail string, ) *exec.Cmd
ForceCommit commits every change while skipping CI.
func GlobalName ¶
GlobalName sets the global git author name.
func GlobalUser ¶
GlobalUser sets the global git author email.
func RemotePullRebaseNamedBranch ¶ added in v1.0.4
func RemotePush ¶
RemotePush pushs the changes from the local head to a remote branch..
func RemotePushMirror ¶ added in v1.2.0
RemotePushMirror pushes all refs to remote repository using --mirror.
func RemotePushNamedBranch ¶
func RemotePushNamedBranch( ctx context.Context, remote, localbranch, branch string, force, followtags bool, ) *exec.Cmd
RemotePushNamedBranch puchs changes from a local to a remote branch.
func RemoteRemove ¶
RemoteRemove drops the defined remote from a git repo.
func SkipVerify ¶
SkipVerify disables globally the git ssl verification.
func TestCleanTree ¶
TestCleanTree returns non-zero if diff between index and local repository
func WriteNetrc ¶
WriteNetrc writes the netrc file.
func WriteToken ¶
WriteToken authenticate with Git hosting using a token.
Types ¶
This section is empty.