git

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(repositoryPath string, files []string, shellRunOptions shell.RunOptions) error

func AddAll

func AddAll(repositoryPath string, shellRunOptions shell.RunOptions) error

func CheckAccess

func CheckAccess(workspace string, repository string, shellRunOptions shell.RunOptions) bool

func Clone

func Clone(workspace string, repositoryPath string, saveAs string, shellRunOptions shell.RunOptions) error

func Commit

func Commit(repositoryPath string, message string, authorName string, authorEmail string, shellRunOptions shell.RunOptions) error

func LsRemote

func LsRemote(repository string, shellRunOptions shell.RunOptions) error

func Pull

func Pull(repositoryPath string, shellRunOptions shell.RunOptions) error

func Push

func Push(repositoryPath string, shellRunOptions shell.RunOptions) error

func Reset

func Reset(repositoryPath string, shellRunOptions shell.RunOptions) error

Types

type GitStatusResult

type GitStatusResult struct {
	File string
}

func Status

func Status(repositoryPath string, shellRunOptions shell.RunOptions) []GitStatusResult

type RepositoryMetadata

type RepositoryMetadata struct {
	Address string
}

func GetRepositoryMetadata

func GetRepositoryMetadata(repositoryPath string, shellRunOptions shell.RunOptions) (RepositoryMetadata, error)

Jump to

Keyboard shortcuts

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