inertia: github.com/ubclaunchpad/inertia/local/git Index | Files

package git

import "github.com/ubclaunchpad/inertia/local/git"

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

Package Files

doc.go git.go

func GetRepoCurrentBranch Uses

func GetRepoCurrentBranch() (string, error)

GetRepoCurrentBranch returns the current repository branch

func GetRepoRemote Uses

func GetRepoRemote(remote string) (string, error)

GetRepoRemote reads a remote URL

func IsRepo Uses

func IsRepo(cwd string) error

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

Package git imports 6 packages (graph) and is imported by 4 packages. Updated 2020-10-27. Refresh now. Tools for package owners.