git

package
v0.0.0-...-da7d6d0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package git provides utilities of working with the current .git repo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrNotGitRepo

type ErrNotGitRepo struct {
	Cmd       *util.Cmd
	Directory string
}

ErrNotGitRepo is raised when given directory is not a .git repo

func (ErrNotGitRepo) Error

func (err ErrNotGitRepo) Error() string

Error returns printable error string

type InfoData

type InfoData struct {
	Sha      string
	Branch   string
	RepoName string
	Remote   string
	URL      string
	Message  string
	Author   string
}

InfoData is the data structure that describes info taken from the current .git repo

func Info

func Info(dir string) (gitInfo InfoData, err error)

Info gathers info from a given directory's .git repo

Jump to

Keyboard shortcuts

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