pub fn import_annotations<R: BufRead>(
git_ops: &dyn GitOps,
reader: R,
force: bool,
dry_run: bool,
) -> Result<ImportSummary>Expand description
Import annotations from a JSONL reader.
Each line is an ExportEntry JSON object. For each entry:
- Validate the annotation can be parsed (v1 or v2).
- Check if the commit SHA exists locally.
- If the commit has no existing note (or
forceis set), write the annotation. - Otherwise skip.