use-git-branch
Primitive Git branch name vocabulary for RustUse.
use-git-branch models local, remote-tracking, and default branch names. It offers small category helpers without enforcing a workflow.
Basic usage
use ;
let branch = new.expect;
let default_branch = main;
assert!;
assert_eq!;
Scope
- Validate basic branch-name text.
- Classify common prefixes such as
feature/,release/, andhotfix/. - Keep branch creation, checkout, and workflow policy out of scope.