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.

          Source Files