stagesift-git-domain 0.1.1
“Pure Git domain types (status, diff, blame). No I/O, no UI types.”
Package first published within seven daysPackage under two months old
SHA-2568c5bd31790e52d4899d58f434dc82b170f39eacfededb1751751eb070e9390f6
MaleculeMd₂(In₂Pa)
Evidence
⋯5 lines
86}
87
88#[cfg(test)]
89mod tests {
90 use super::*;
91
92 #[test]
93 fn plain_paths_are_untouched() {
94 assert_eq!(quote_c_style(b"src/main.rs"), b"src/main.rs");
95 assert_eq!(quote_c_style(b"-leading-das …
1use std::ffi::OsString;
2use std::fmt;
3use std::path::{Path, PathBuf};
4use std::sync::Arc;
5
6/// A repository-relative path exactly as Git reports it.
7///
8/// Git paths are byte strings. …
45:29… f) -> OsString {
46 #[cfg(unix)]
47 {
48 use std::os::unix::ffi::OsStrExt;
49 std::ffi::OsStr::from_bytes(self.as_bytes()).to_os_string()
50 }
51 #[cfg(not(unix))]
52 {
53 …
1use std::sync::Arc;
2
3use crate::oid::Oid;
4use crate::path::RepoPath;
5
6/// Which pair of Git layers a diff compares.
7#[derive(Clone, Copy, Debug, PartialEq, Eq, Has …
1use std::fmt;
2
3/// A full hexadecimal object id (SHA-1 or SHA-256).
4#[derive(Clone, PartialEq, Eq, Hash, Par …
No evidence locations were recorded for this file. Raw result