gitattribution

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Committed   = "committed"
	Uncommitted = "uncommitted"
	Rewritten   = "rewritten"
	Unavailable = "history_unavailable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribution

type Attribution struct {
	State       string
	Name        string
	Email       string
	CommitID    string
	CommittedAt time.Time
}

type Resolver

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

func New

func New(ctx context.Context, fromDir string) *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, path string) Attribution

func (*Resolver) ResolveAll

func (r *Resolver) ResolveAll(ctx context.Context, paths []string) []Attribution

ResolveAll resolves one page's review records together. Repository state and tracked-file membership are properties of the snapshot, so querying them once avoids two Git processes per record. Introducing commits remain per-path so --follow keeps its rename semantics.

Jump to

Keyboard shortcuts

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