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 an Annotation (v1 or v2 via parse_annotation)
- Filter markers matching the query (file path, anchor, line range)
- Return results sorted newest-first (preserving git log order)