stackutils

package
v0.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTree added in v0.0.35

func RenderTree(node *StackTreeNode, branchDataFn func(branchName string, isTrunk bool) string) string

Types

type StackTreeBranchInfo

type StackTreeBranchInfo struct {
	BranchName string
	// contains filtered or unexported fields
}

type StackTreeNode

type StackTreeNode struct {
	Branch   *StackTreeBranchInfo
	Children []*StackTreeNode
}

func BuildStackTree

func BuildStackTree(tx meta.ReadTx, currentBranch string) []*StackTreeNode

func BuildStackTreeForPullRequest

func BuildStackTreeForPullRequest(tx meta.ReadTx, currentBranch string) (*StackTreeNode, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL