Documentation ¶
Index ¶
- func GetCurrentBranch() (string, error)
- func GetMasterBranch() (string, error)
- func GetRemoteURL() (string, error)
- func RepoDataIncludeBranchDescription(params *repoDataParams)
- func RepoDataIncludeCommitMetadata(params *repoDataParams)
- func ResolveBranchName(rev string, excludeBranch *string) (*branchNameResolution, error)
- func ResolveCommitRef(commitRef string) (string, error)
- func ResolveRev(rev string) (string, error)
- type BranchDescription
- type RepoData
- type RepoDataOption
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentBranch ¶
func GetRemoteURL ¶
func RepoDataIncludeBranchDescription ¶ added in v0.1.31
func RepoDataIncludeBranchDescription(params *repoDataParams)
func RepoDataIncludeCommitMetadata ¶ added in v0.1.31
func RepoDataIncludeCommitMetadata(params *repoDataParams)
func ResolveBranchName ¶
func ResolveCommitRef ¶ added in v0.1.31
func ResolveRev ¶ added in v0.1.2
Types ¶
type BranchDescription ¶
func NewBranchDescription ¶
func NewBranchDescription(firstLine string, remainingLines []string) *BranchDescription
func (*BranchDescription) String ¶
func (b *BranchDescription) String() string
type RepoData ¶
type RepoData struct { MasterBranch string BranchRootNode *TreeNode // Commit hash to node. Each node is unique. CommitHashToNode map[string]*TreeNode // Branch name to node. Nodes may be duplicated. BranchNameToNode map[string]*TreeNode }
func NewRepoData ¶
func NewRepoData(opts ...RepoDataOption) (*RepoData, error)
type RepoDataOption ¶ added in v0.1.31
type RepoDataOption func(params *repoDataParams)
Click to show internal directories.
Click to hide internal directories.