ownership

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package ownership computes code ownership heatmaps from commit history per directory and file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compute

func Compute(ctx context.Context, fetcher *gitlog.Fetcher, commits []commit.Commit) ([]FileOwnership, []DirectoryOwnership)

func FormatHTML

func FormatHTML(files []FileOwnership, dirs []DirectoryOwnership) string

Types

type DirectoryOwnership

type DirectoryOwnership struct {
	Dir     string
	Authors map[string]int
	Files   int
	Primary string
}

type FileOwnership

type FileOwnership struct {
	Path    string
	Authors map[string]int
	Primary string
	Commits int
}

Jump to

Keyboard shortcuts

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