gitutil

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitHubProjectForOrigin

func GetGitHubProjectForOrigin(dir string) (string, string, error)

GetGitHubProjectForOrigin returns the GitHub login, and GitHub repo name if the "origin" remote is a GitHub URL.

func GetGitHubProjectForOriginByRepo

func GetGitHubProjectForOriginByRepo(repo *git.Repository) (string, string, error)

GetGitHubProjectForOriginByRepo returns the GitHub login, and GitHub repo name if the "origin" remote is a GitHub URL.

func GetGitRepository

func GetGitRepository(dir string) (*git.Repository, error)

GetGitRepository returns the git repository by walking up from the provided directory. If no repository is found, will return (nil, nil).

Types

This section is empty.

Jump to

Keyboard shortcuts

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