use-git-pathspec 0.0.1

Primitive Git pathspec vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    25 out of 25 items documented1 out of 14 items with examples
  • Size
  • Source code size: 9.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 697.31 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-pathspec

Primitive Git pathspec vocabulary for RustUse.

use-git-pathspec models pathspec strings and common magic labels such as top, literal, glob, icase, and exclude. It does not traverse the filesystem or match paths.

Basic usage

use use_git_pathspec::{GitPathspec, PathspecMagic};

let pathspec = GitPathspec::new(":(top,literal)README.md").expect("valid pathspec");

assert!(pathspec.has_magic(PathspecMagic::Top));
assert!(pathspec.has_magic(PathspecMagic::Literal));

Scope

  • Wrap pathspec text and expose descriptive magic vocabulary.
  • Keep filesystem traversal and glob evaluation out of scope.