Documentation ¶
Index ¶
- func ConvertToStackTree(db meta.DB, pieces map[plumbing.ReferenceName]*BranchPiece, ...) []*stackutils.StackTreeNode
- func DetectBranches(repo *avgit.Repo, unmanagedBranches []plumbing.ReferenceName) (map[plumbing.ReferenceName]*BranchPiece, error)
- func GetChildren(pieces map[plumbing.ReferenceName]*BranchPiece, branch plumbing.ReferenceName) map[plumbing.ReferenceName]*BranchPiece
- type BranchPiece
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToStackTree ¶
func ConvertToStackTree( db meta.DB, pieces map[plumbing.ReferenceName]*BranchPiece, currentBranch plumbing.ReferenceName, sortCurrent bool, ) []*stackutils.StackTreeNode
ConvertToStackTree converts the branch pieces to a tree structure.
func DetectBranches ¶ added in v0.0.40
func DetectBranches( repo *avgit.Repo, unmanagedBranches []plumbing.ReferenceName, ) (map[plumbing.ReferenceName]*BranchPiece, error)
func GetChildren ¶
func GetChildren( pieces map[plumbing.ReferenceName]*BranchPiece, branch plumbing.ReferenceName, ) map[plumbing.ReferenceName]*BranchPiece
GetChildren returns the children of the given branch.
Types ¶
type BranchPiece ¶
type BranchPiece struct { Name plumbing.ReferenceName // If any of these are set, Parent, ParentIsTrunk, ParentMergeBase, and IncludedCommits are // unset. PossibleParents []plumbing.ReferenceName ContainsMergeCommit bool Parent plumbing.ReferenceName ParentIsTrunk bool ParentMergeBase plumbing.Hash IncludedCommits []*object.Commit }
Click to show internal directories.
Click to hide internal directories.