Function get_annotation_for_file

Source
pub fn get_annotation_for_file(
    repo: &dyn Repo,
    starting_commit: &Commit,
    domain: &Rc<ResolvedRevsetExpression>,
    file_path: &RepoPath,
) -> Result<FileAnnotation, RevsetEvaluationError>
Expand description

Get line by line annotations for a specific file path in the repo.

The domain expression narrows the range of ancestors to search. It will be intersected as domain & ::starting_commit & files(file_path). The starting_commit is assumed to be included in the domain.

If the file is not found, returns empty results.