git

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package git provides utilities for interacting with git.

It relies on shell-ing out and interacting with the git CLI, and will not work without the git CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepoCurrentBranch

func GetRepoCurrentBranch() (string, error)

GetRepoCurrentBranch returns the current repository branch

func GetRepoRemote

func GetRepoRemote(remote string) (string, error)

GetRepoRemote reads a remote URL

func IsRepo

func IsRepo(cwd string) error

IsRepo returns an error if we're not in a git repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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