git

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	// contains filtered or unexported fields
}

Git represent a set of git commands to one git repository and one local path

func NewGit

func NewGit(logger dd.Logger, url, path *string, bare bool) *Git

NewGit - Init a new Git instance

func (*Git) Clone

func (g *Git) Clone() error

Clone - clone a new git repository

func (*Git) Path

func (g *Git) Path() *string

Path -

func (*Git) Sync

func (g *Git) Sync() error

Sync - Sync a git repository, clone if is a new one, update otherwise

func (*Git) Update

func (g *Git) Update() error

Update - update a git repository

Jump to

Keyboard shortcuts

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