Documentation
¶
Index ¶
- func CollectChangeText(sinceSHA string) (text, latestSHA string)
- func CollectChangeTextAt(root string, sinceSHA string) (text, latestSHA string)
- func CollectChangeTextAtWithLimit(root string, sinceSHA string, limit int, extDetail bool) (text, latestSHA string)
- func DefaultBranch() string
- func DefaultBranchAt(dir string) string
- func GuessProvider(remote string) string
- func IsGitRepo(path string) bool
- func OriginURL() (string, error)
- func OriginURLAt(dir string) (string, error)
- func RepoRoot() (string, error)
- func RepoRootAt(dir string) (string, error)
- func ShortenRemote(remote string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectChangeText ¶
func CollectChangeTextAt ¶
func CollectChangeTextAtWithLimit ¶
func CollectChangeTextAtWithLimit(root string, sinceSHA string, limit int, extDetail bool) (text, latestSHA string)
CollectChangeTextAtWithLimit returns a combined text of commits and diffs between sinceSHA..HEAD. If sinceSHA is empty, it limits the history to the last 'limit' commits.
func DefaultBranch ¶
func DefaultBranch() string
func DefaultBranchAt ¶
func GuessProvider ¶
func OriginURLAt ¶
func RepoRootAt ¶
func ShortenRemote ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.