Documentation
¶
Index ¶
- Variables
- func Branch(dir string) (string, error)
- func Clone(url, dir string) error
- func DefaultBranch(dir string) (string, error)
- func Installed(dir string) (bool, error)
- func Pull(dir, branch string) error
- func RemoteSlug(dir string) (org, name string, err error)
- func ShowBlob(dir, ref, path string) ([]byte, error)
- func ShowFile(dir, ref, path string) ([]string, error)
- type Commit
- type File
- type FileStatus
- type Hunk
- type Line
- type LineKind
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var FetchTTL = 5 * time.Minute
Functions ¶
func DefaultBranch ¶ added in v0.4.0
func RemoteSlug ¶ added in v0.4.0
Types ¶
type Commit ¶ added in v0.4.0
func HunkCommit ¶ added in v0.4.0
func LastCommit ¶ added in v0.4.0
func ShowCommit ¶ added in v0.4.0
type File ¶ added in v0.4.0
type File struct {
Binary bool
Hunks []Hunk
NewPath string
OldPath string
Status FileStatus
}
func DiffCommit ¶ added in v0.4.0
type FileStatus ¶ added in v0.4.0
type FileStatus string
const ( StatusAdded FileStatus = "added" StatusDeleted FileStatus = "deleted" StatusModified FileStatus = "modified" StatusRenamed FileStatus = "renamed" )
type Hunk ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.