The one warning that's left is a warning about large size differences for some Error enums.
CV3S2Z2RTSL5F3RW3CZTGABGF7R6TRTO24LH45V6H2JHOWYZKJUAC
KPGRBRHS3HGVO3FTJQ33GATP75TO4CE6DL567YZTXTWGLELRZYKQC
EBE4NGXWTXMGB6B7M4AWJRMVQE2QYR2GODPPRWE67RKQLFAW7KBAC
ATRA7XTTN62JZQOI7A4JI3Z7L3XVTAEEW2U4AX6UQKEQ6USOXQDQC
QWLMNP5FOCONNJDNVKZFHJIM7WHLF7QCJI67YSV5VT2SXEOPZ6TQC
D467LQZ62MTKWYPTMRBYTTR63CZDCE5WGBIGLQMSWAQYPHC3XITAC
YNZMKRJDWYOQ3R3XHA2G47YG2SDI7FT7AEXH3OLB3BJGB6ALTRQAC
FIIUZR4LJOB5DPB4CBMPJHMO7C5Q4ZINUVM52UK6SIM5WM7R7ZLAC
RVRUZGHUCMZO2UAXMT5NVJM62XK3B3TZWXZFWZKKGIX6RI7LPLCQC
T3IX7GG7BIFN3AX3QQWRPS5CKFZVRU5TRQAMJSYN4FEJXQL75PJQC
R3XMFPCYGXT5CNHYRNVZDGD2TDTCK6XGQ55SPJW56UEQQNV4R64AC
TQBJZLD7Q223IFEBR7SU4FJWPWQWVBCSRPYYYEHXNSDM6DC7UWRAC
W7HZ5VFMEFVJIPYZJXOSMWTQ7DOZOOHT4QZTMDCT63AKIWB3TCZQC
FRQZB7LJV6PBJV66QJ52NYFFTV4TFTBRSQRAD46REZJW6BL4W7UAC
UFSP7C7B2ERFJ2XVVVNXGZRXUEMFSMRABC5YXXLK6ONMFG6QBNHAC
OZUZ5H6DJUXJ2MEHQK6FQ7LTSPUHHGZSFZ3SPBV26A2KBE4TQKQQC
VK2ZYIOFG4GKELXWPKYWB33P3G6BEDP4CQAW6GY6YFIKTINVOSLAC
match env::var("HOME") {
Ok(home) => {
Self::load_identities(
&mut identities,
&Path::new(&home).join(".config/pijul/identities"),
)
.unwrap_or(());
}
Err(..) => {}
if let Ok(home) = env::var("HOME") {
Self::load_identities(
&mut identities,
&Path::new(&home).join(".config/pijul/identities"),
)
.unwrap_or(());
match fs::read_to_string(dir.join(file?.path()).join("identity.toml")) {
Ok(content) => {
let id: Identity = toml::from_str(&content)?;
identities.insert(
id.public_key.key,
format!("{} <{}>", id.display_name, id.email),
);
}
Err(..) => {}
if let Ok(content) = fs::read_to_string(dir.join(file?.path()).join("identity.toml")) {
let id: Identity = toml::from_str(&content)?;
identities.insert(
id.public_key.key,
format!("{} <{}>", id.display_name, id.email),
);
if int_ < int {
continue;
} else if int_ > int {
break;
match int_.cmp(int) {
Ordering::Less => continue,
Ordering::Greater => break,
Ordering::Equal => {
if let Some((path, _)) = libpijul::fs::find_path(
&self.change_store,
&*txn,
&*self.channel.read(),
false,
*inode,
)? {
touched_paths.insert(path);
} else {
touched_paths.clear();
break;
}
}
match last {
Some(last_path) => {
// If `last_path` is a prefix (in the path sense) of `path`, skip.
if last_path.len() < path.len() {
let (pre_last, post_last) = path.split_at(last_path.len());
if pre_last == last_path && post_last.starts_with("/") {
continue;
}
if let Some(last_path) = last {
// If `last_path` is a prefix (in the path sense) of `path`, skip.
if last_path.len() < path.len() {
let (pre_last, post_last) = path.split_at(last_path.len());
if pre_last == last_path && post_last.starts_with('/') {
continue;
match &op {
FileOp::Modify { fw } => {
let ct = fw.content.lock().unwrap();
let content: &[u8] = &*ct;
let h = sha256::digest(content);
let mut new_blob = false;
let blob_mark = *self.blob_marks.entry(h).or_insert_with(|| {
new_blob = true;
self.max_blob_mark += 1;
self.max_blob_mark
});
file_marks.insert(fw.name.clone(), blob_mark);
if new_blob {
println!("blob");
println!("mark :{}", blob_mark);
println!("data {}", content.len());
std::io::stdout().write_all(content).unwrap();
println!("");
}
if let FileOp::Modify { fw } = &op {
let ct = fw.content.lock().unwrap();
let content: &[u8] = &ct;
let h = sha256::digest(content);
let mut new_blob = false;
let blob_mark = *self.blob_marks.entry(h).or_insert_with(|| {
new_blob = true;
self.max_blob_mark += 1;
self.max_blob_mark
});
file_marks.insert(fw.name.clone(), blob_mark);
if new_blob {
println!("blob");
println!("mark :{}", blob_mark);
println!("data {}", content.len());
std::io::stdout().write_all(content).unwrap();
println!();
match parent {
Some(p) => match self.commit_marks.get(&p) {
Some(p_mark) => println!("from :{}", p_mark),
None => {}
},
None => {}
if let Some(p) = parent {
if let Some(p_mark) = self.commit_marks.get(&p) {
println!("from :{}", p_mark);
}