Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
type Git struct { SSHKey string LocalPath string RemotePath string BranchName string Repository *gogit.Repository GitToken string GitUser string }
Git represents repository object and wraps go-git calls
func Client ¶
func Client() *Git
Client initializes a git repo under a temp directory and attaches a remote
func EnvGitClient ¶
EnvGitClient is git client for environment
func (*Git) Refresh ¶
Refresh checks if local git repository copy is outdated. If it is, changes are pulled in.
func (*Git) UpdatesExist ¶
UpdatesExist returns true if local HEAD is behind remote
Click to show internal directories.
Click to hide internal directories.