This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

IGitHistoryReader Pennington.TranslationAudit

Reads the most recent commit affecting a tracked file. Abstracted for testability.

Methods

GetLatestCommit

#
public CommitInfo GetLatestCommit(string absoluteFilePath)

Returns the latest commit touching absoluteFilePath, or null when the file is untracked or the repo is missing.

Parameters

absoluteFilePath string

Returns

CommitInfo

Pennington.TranslationAudit.IGitHistoryReader

namespace Pennington.TranslationAudit;

/// Reads the most recent commit affecting a tracked file. Abstracted for testability.
public interface IGitHistoryReader
{
    /// Returns the latest commit touching absoluteFilePath, or null when the file is untracked or the repo is missing.
    
public CommitInfo GetLatestCommit(string absoluteFilePath)
; }