Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorCommits ¶
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 ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.