repo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add() *exec.Cmd

Add updates the index to match the working tree.

func EmptyCommit

func EmptyCommit(msg string, noVerify bool) *exec.Cmd

EmptyCommit simply create an empty commit

func ForceAdd

func ForceAdd() *exec.Cmd

ForceAdd forces the addition of all dirty files.

func ForceCommit

func ForceCommit(msg string, noVerify bool) *exec.Cmd

ForceCommit commits every change while skipping CI.

func GlobalName

func GlobalName(author string) *exec.Cmd

GlobalName sets the global git author name.

func GlobalUser

func GlobalUser(email string) *exec.Cmd

GlobalUser sets the global git author email.

func RemoteAdd

func RemoteAdd(name, url string) *exec.Cmd

RemoteAdd adds an additional remote to a git repo.

func RemotePush

func RemotePush(remote, branch string, force bool, followtags bool) *exec.Cmd

RemotePush pushs the changes from the local head to a remote branch..

func RemotePushNamedBranch

func RemotePushNamedBranch(remote, localbranch string, branch string, force bool, followtags bool) *exec.Cmd

RemotePushNamedBranch puchs changes from a local to a remote branch.

func RemoteRemove

func RemoteRemove(name string) *exec.Cmd

RemoteRemove drops the defined remote from a git repo.

func SkipVerify

func SkipVerify() *exec.Cmd

SkipVerify disables globally the git ssl verification.

func TestCleanTree

func TestCleanTree() *exec.Cmd

TestCleanTree returns non-zero if diff between index and local repository

func WriteKey

func WriteKey(privateKey string) error

WriteKey writes the private key.

func WriteNetrc

func WriteNetrc(machine, login, password string) error

WriteNetrc writes the netrc file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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