utils

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commit

func Commit(path string, status git.Status, worktree git.Worktree) ([]string, []string, error)

Commit will add and commit changes

func GitDiff

func GitDiff(path, filename string) (string, error)

GitDiff returns a diff.

func GitOpen

func GitOpen(g *Git) error

GitOpen opens or initializes the repository

func GitOps

func GitOps(c *configuration.Config) error

GitOps does stuff with git

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