Skip to main content

read_notes_tree

Function read_notes_tree 

Source
pub fn read_notes_tree(
    repo: &Repository,
    notes_ref: &str,
) -> Result<Vec<NotesTreeEntry>>
Expand description

Read the notes tree entries from the notes ref.

notes_ref is looked up in the repository’s ref store; when no such ref exists it is resolved as a revision instead (so a notes commit or tree id works too). The target may be a notes commit or a bare tree.

§Errors

Returns an empty vec when neither a ref nor a revision named notes_ref exists.