Skip to main content

get_commits_with_notes_content

Function get_commits_with_notes_content 

Source
pub fn get_commits_with_notes_content(
    notes_ref: &str,
) -> Result<Vec<CommitWithNotes>>
Expand description

Batch-fetch all commits that have notes in notes_ref, together with their note content, commit subject, and author — in exactly 2 git calls regardless of how many commits have notes.

Uses git notes list to discover which commits have notes, then a single git log --no-walk with --notes=<ref> to fetch everything in one pass.