use-git-status 0.0.1

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

Primitive Git status metadata vocabulary for RustUse.

use-git-status models index, worktree, conflict, file-change, and porcelain status labels. It does not compute repository status.

Basic usage

use use_git_status::{GitIndexStatus, GitStatus, GitWorktreeStatus};

let status = GitStatus::new()
    .with_index(GitIndexStatus::Modified)
    .with_worktree(GitWorktreeStatus::Unmodified);

assert!(!status.is_clean());
assert_eq!(status.porcelain_code(), "M ");

Scope

  • Model common status labels such as added, modified, deleted, renamed, copied, untracked, ignored, and conflicted.
  • Keep index/worktree scanning and status computation out of scope.