Documentation ¶
Index ¶
- Variables
- type Git
- func (g *Git) Add(ctx context.Context, files ...string) error
- func (g *Git) AddRemote(ctx context.Context, remote, url string) error
- func (g *Git) Cmd(context.Context, string, ...string) error
- func (g *Git) Commit(ctx context.Context, msg string) error
- func (g *Git) GetRevision(context.Context, string, string) ([]byte, error)
- func (g *Git) HasStagedChanges(ctx context.Context) bool
- func (g *Git) InitConfig(context.Context, string, string) error
- func (g *Git) IsInitialized() bool
- func (g *Git) Name() string
- func (g *Git) Pull(ctx context.Context, remote, branch string) error
- func (g *Git) Push(ctx context.Context, remote, branch string) error
- func (g *Git) PushPull(ctx context.Context, op, remote, branch string) error
- func (g *Git) Revisions(context.Context, string) ([]backend.Revision, error)
- func (g *Git) Version(context.Context) semver.Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Stdout is exported for mocking / redirecting Stdout io.Writer = os.Stdout )
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git is a go-git.v4 based git client
func (*Git) GetRevision ¶
GetRevision is not implemented
func (*Git) HasStagedChanges ¶
HasStagedChanges retures true if there are changes which can be committed
func (*Git) InitConfig ¶
InitConfig is not yet implemented
func (*Git) IsInitialized ¶
IsInitialized returns true if this is a valid repo
Click to show internal directories.
Click to hide internal directories.