gitutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHEAD

func GetHEAD(reposPath pathutil.ReposPath) (string, error)

If the repository is bare:

Return the reference of refs/remotes/origin/{branch}
where {branch} is default branch

If the repository is non-bare:

Return the reference of current branch's HEAD

func SetUpstreamBranch

func SetUpstreamBranch(r *git.Repository) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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