Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreChangesCommitted ¶
AreChangesCommitted returns true if dir is a clean git repository with no pending changes. It returns also true if dir is NOT a git repository.
func Clone ¶ added in v0.26.0
Clone clones a git repository represented by urlRef, into dir. urlRef is the URL of the repository, with an optional ref, suffixed to the URL with a `@`. Ref can be a tag, a branch or a hash. Valid examples of urlRef: github.com/org/repo, github.com/org/repo@v1, github.com/org/repo@develop, github.com/org/repo@ab88cdf.
func InitAndCommit ¶ added in v0.26.0
InitAndCommit creates a git repo in path if path isn't already inside a git repository, then commits path content.
func IsRepository ¶ added in v0.27.0
IsRepository checks if a path contains a Git repository.
Types ¶
This section is empty.