utils

package
v1.0.52 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit(status git.Status, worktree git.Worktree) error

Commit will add and commit changes

func GitDiff

func GitDiff(workspace, filename string, output string) (string, error)

GitDiff returns a diff of the existing config and the collector output

func GitOpen

func GitOpen(g *Git) error

GitOpen opens or initializes the repository

func GitOps

func GitOps(c *configuration.Config)

GitOps does stuff with git

func GitSendEmail added in v1.0.52

func GitSendEmail(c *configuration.Config, diffs []string)

GitSendEmail sends git related email notifications

func GitStatus

func GitStatus(worktree git.Worktree) (git.Status, bool, error)

GitStatus reports the current working tree status

Types

type Git

type Git struct {
	Repo *git.Repository
	Path string
	// contains filtered or unexported fields
}

Git holds git repo data

Jump to

Keyboard shortcuts

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