utils

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitNode

type CommitNode struct {
	Sha    string
	Parent []*CommitNode
}

type CommitNodeGraph

type CommitNodeGraph struct {
	// contains filtered or unexported fields
}

func NewCommitNodeGraph

func NewCommitNodeGraph() *CommitNodeGraph

func (*CommitNodeGraph) AddParent

func (cng *CommitNodeGraph) AddParent(commit_sha string, commit_parent_sha string)

AddParent adds node's edge to node.Parent

func (*CommitNodeGraph) CalculateLostSha

func (cng *CommitNodeGraph) CalculateLostSha(source_sha string, target_sha string) ([]string, int, int)

CalculateLostSha calculates commit sha which newCommitNode has but oldCommitNode does not have

func (*CommitNodeGraph) Size

func (cng *CommitNodeGraph) Size() int

Jump to

Keyboard shortcuts

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