use-git-branch 0.0.1

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

Primitive Git branch name vocabulary for RustUse.

use-git-branch models local, remote-tracking, and default branch names. It offers small category helpers without enforcing a workflow.

Basic usage

use use_git_branch::{DefaultBranchName, GitBranchName};

let branch = GitBranchName::new("feature/use-git").expect("valid branch");
let default_branch = DefaultBranchName::main();

assert!(branch.is_feature());
assert_eq!(default_branch.as_str(), "main");

Scope

  • Validate basic branch-name text.
  • Classify common prefixes such as feature/, release/, and hotfix/.
  • Keep branch creation, checkout, and workflow policy out of scope.