summary

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

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntropicNodes

func EntropicNodes(n *dirtree.Node, top int) []*dirtree.Node

EntropicNodes returns the top n nodes in the tree based on the size of their diff, excluding nodes that contain most of the same information as others.

Types

type AuthorCommits

type AuthorCommits struct {
	AuthorEmail string
	Commits     []commit.Commit
}

func CommitsByAuthor

func CommitsByAuthor(commits []commit.Commit) []AuthorCommits

CommitsByAuthor organizes the commits by their author and sorts them in descending order by LoC.

type ExtensionLinesOfCode

type ExtensionLinesOfCode struct {
	Extension string
	Additions int
	Deletions int
}

func (ExtensionLinesOfCode) Score

func (e ExtensionLinesOfCode) Score() int

type LinesOfCode

type LinesOfCode struct {
	Extensions []ExtensionLinesOfCode
}

func CountLoC

func CountLoC(stats []commit.FileStat) LinesOfCode

func (LinesOfCode) Additions

func (s LinesOfCode) Additions() int

func (LinesOfCode) Deletions

func (s LinesOfCode) Deletions() int

func (LinesOfCode) Score

func (s LinesOfCode) Score() int

func (LinesOfCode) String

func (s LinesOfCode) String() string

type NodeWithCommits

type NodeWithCommits struct {
	Node    *dirtree.Node
	Commits []commit.Commit
}

func OrganizeCommits

func OrganizeCommits(commits []commit.Commit, nodes []*dirtree.Node) []*NodeWithCommits

OrganizeCommits places each commit with the most relevant node in the list. It guarantees that all commits and nodes are represented exactly once. Complexity: n*m*log(n)

type TopAuthor

type TopAuthor struct {
	Email string
	Stats []commit.FileStat
}

func TopAuthors

func TopAuthors(node *dirtree.Node) []TopAuthor

TopAuthors get the top commiters for the node.

Jump to

Keyboard shortcuts

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