Use the change time in addition to the modified time when detecting untouched files (at least on Unix)
Dependencies
- [2]
EAAJNZ3JMake recursive directory removal optional - [*]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [*]
VO5OQW4WRemoving anyhow in libpijul
Change contents
- edit in libpijul/src/working_copy/filesystem.rs at line 331[4.214660][5.4195]
#[cfg(not(unix))] - edit in libpijul/src/working_copy/filesystem.rs at line 339
#[cfg(unix)]fn modified_time(&self, file: &str) -> Result<std::time::SystemTime, Self::Error> {debug!("modified_time {:?}", file);use std::os::unix::fs::MetadataExt;let attr = std::fs::metadata(&self.path(file))?;let ctime = std::time::SystemTime::UNIX_EPOCH + std::time::Duration::from_secs(attr.ctime() as u64);Ok(attr.modified()?.min(ctime))}