use-git-refspec
Primitive Git refspec vocabulary for RustUse.
use-git-refspec models fetch and push refspec syntax. It can split simple [+]<source>:<destination> text, but it does not contact remotes or update refs.
Basic usage
use ;
let spec: GitRefspec = "+refs/heads/*:refs/remotes/origin/*".parse.expect;
assert_eq!;
assert!;
Scope
- Model fetch vs push vocabulary.
- Model optional force and wildcard refspec labels.
- Keep remote operations out of scope.