use-git-ref
Primitive Git ref vocabulary for RustUse.
use-git-ref models ref names, ref kinds, symbolic refs, and HEAD. It does not dereference refs or inspect repositories.
Basic usage
use ;
let name = new.expect;
let head = symbolic;
assert_eq!;
assert!;
Scope
- Recognize
HEAD,refs/heads/*,refs/tags/*, andrefs/remotes/*vocabulary. - Validate simple ref-name text.
- Keep repository lookup and dereferencing out of scope.