pub fn retrieve_annotations(
git: &dyn GitOps,
query: &ReadQuery,
) -> Result<Vec<MatchedAnnotation>, GitError>Expand description
Retrieve matching annotations for a file from git notes.
- Find commits that touched the file via
git log --follow - For each commit, try to read the chronicle note
- Parse the note as a v3 Annotation via
parse_annotation - Filter wisdom entries matching the query (file path, line range)
- Return results sorted newest-first (preserving git log order)