pub fn expand_notes_ref(short_or_full: &str) -> String
Match Git’s expand_notes_ref (notes.c): only --ref uses this; env/config refs are verbatim.
expand_notes_ref
notes.c
--ref