use-git-refspec 0.0.1

Primitive Git refspec vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    31 out of 31 items documented1 out of 21 items with examples
  • Size
  • Source code size: 12.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 777.12 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-git
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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 use_git_refspec::{GitRefspec, RefspecMode};

let spec: GitRefspec = "+refs/heads/*:refs/remotes/origin/*".parse().expect("valid refspec");

assert_eq!(spec.mode(), RefspecMode::Force);
assert!(spec.is_wildcard());

Scope

  • Model fetch vs push vocabulary.
  • Model optional force and wildcard refspec labels.
  • Keep remote operations out of scope.