Skip to main content

global_doc_revisions

Function global_doc_revisions 

Source
pub fn global_doc_revisions(
    repo: &Repository,
    docs_prefix: &str,
    limit: usize,
) -> Result<Vec<GlobalRevision>, DiffError>
Expand description

All commits (newest-first, capped at limit doc-touching commits) that changed any file under docs_prefix (repo-relative, e.g. "docs"), each paired with the per-file old/new content from its first parent. The global analogue of doc_revisions — mirrors git log -- <docsPath> plus the per-commit git diff in the original git-diff.server.ts.