use-git-revision 0.0.1

Primitive Git revision selector vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    34 out of 34 items documented1 out of 19 items with examples
  • Size
  • Source code size: 12.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 790.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-revision

Primitive Git revision selector vocabulary for RustUse.

use-git-revision models revision selectors, suffixes, and ranges such as A..B and A...B. It does not resolve revisions.

Basic usage

use use_git_revision::{GitRevision, RevisionRange, RevisionRangeKind};

let revision = GitRevision::head();
let range = RevisionRange::new("main", "feature/use-git", RevisionRangeKind::TwoDot)
    .expect("valid range");

assert_eq!(revision.as_str(), "HEAD");
assert_eq!(range.to_string(), "main..feature/use-git");

Scope

  • Model HEAD, branch, tag, ref, and object identifier selectors as text.
  • Model parent and ancestor suffix vocabulary.
  • Keep revision resolution out of scope.