freshness

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package freshness detects whether the local index is stale relative to the repository's current state (git HEAD or source directory mtime).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Stale    bool
	Reason   string
	RepoID   string
	RepoRoot string
}

Status describes whether the index is stale for a given repo.

func Check

func Check(db *store.DB, repoRoot string) *Status

Check determines if the index for repoRoot is stale. Returns nil if the repo has never been scanned (uninitialized, not stale).

Jump to

Keyboard shortcuts

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