git

package
v0.182.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package git provides an integration with the git command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean added in v0.35.0

func Clean(output string, err error) (string, error)

Clean the output.

func ExtractRepoFromConfig added in v0.160.0

func ExtractRepoFromConfig() (result config.Repo, err error)

ExtractRepoFromConfig gets the repo name from the Git config.

func ExtractRepoFromURL added in v0.160.0

func ExtractRepoFromURL(s string) config.Repo

func IsRepo added in v0.34.4

func IsRepo() bool

IsRepo returns true if current folder is a git repository.

func Run

func Run(args ...string) (string, error)

Run runs a git command and returns its output or errors.

func RunEnv added in v0.160.0

func RunEnv(env map[string]string, args ...string) (string, error)

RunEnv runs a git command with the specified env vars and returns its output or errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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