Documentation
¶
Index ¶
- func Add(dir string, path string) error
- func Branch(dir string, branch string) error
- func CheckoutBranch(dir string, branch string, gitConfig manifest.GitConfig) error
- func Clone(gitConfig manifest.GitConfig) (string, error)
- func CloneInto(gitConfig manifest.GitConfig, dir string) error
- func Commit(dir string, message string, author manifest.Author) error
- func GetAuthMethod(gitConfig manifest.GitConfig) (transport.AuthMethod, error)
- func GetRemoteFile(gitConfig manifest.GitConfig, branch, path string) ([]byte, error)
- func IsClean(dir string) (bool, error)
- func Push(dir string, gitConfig manifest.GitConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutBranch ¶
func Clone ¶
Clone clones a git repository into a temporary directory and returns the directory path
func GetAuthMethod ¶ added in v0.4.0
func GetAuthMethod(gitConfig manifest.GitConfig) (transport.AuthMethod, error)
GetAuthMethod returns an ssh.AuthMethod based on the git config, or nil if no auth is specified
func GetRemoteFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.