Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchNode ¶
type BranchNode struct {
Name string
SHA string
Ahead int
Behind int
LastCommitDate time.Time
Parent *BranchNode
Children []*BranchNode
}
BranchNode represents a node in the branch tree.
func (*BranchNode) AddChild ¶
func (n *BranchNode) AddChild(child *BranchNode)
AddChild adds a child node to this branch.
func (*BranchNode) Depth ¶
func (n *BranchNode) Depth() int
Depth returns the depth of this node in the tree.
func (*BranchNode) IsLeaf ¶
func (n *BranchNode) IsLeaf() bool
IsLeaf returns true if this node has no children.
type Repository ¶
Repository represents a GitHub repository reference.
func ParseRepository ¶
func ParseRepository(repo string) (*Repository, error)
ParseRepository parses a repository string into owner and name.
func (Repository) FullName ¶
func (r Repository) FullName() string
FullName returns the full repository name (owner/name).
Click to show internal directories.
Click to hide internal directories.