use-git-remote 0.0.1

Primitive Git remote name vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    27 out of 27 items documented1 out of 19 items with examples
  • Size
  • Source code size: 11.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 714.19 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-remote

Primitive Git remote vocabulary for RustUse.

use-git-remote models remote names, remote refs, and remote-tracking refs. It does not parse remote URLs or perform network operations.

Basic usage

use use_git_remote::{GitRemoteName, RemoteTrackingRef};

let remote = GitRemoteName::origin();
let tracking = RemoteTrackingRef::new("origin/main").expect("valid tracking ref");

assert!(remote.is_origin());
assert_eq!(tracking.remote(), Some("origin"));

Scope

  • Validate basic remote names.
  • Model common remote-tracking branch spelling.
  • Keep URL parsing and network behavior out of scope.