summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-12 07:51:58 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-12 07:51:58 +0200
commit3542e279e0752b81addb7a84b9ba8224e3145666 (patch)
treeb8c7acfdcf72f5bc8af55b8f783498b76a3f31b4
parent0de578682090b1a8f170530572c8f68347d2b3e6 (diff)
downloadsummain-rs-3542e279e0752b81addb7a84b9ba8224e3145666.tar.gz
feat! drop atime from the output
Obnam2, which is what this tool is primarily written for, doesn't deal with atime, at least for now.
-rw-r--r--src/lib.rs6
-rw-r--r--summain.md15
2 files changed, 0 insertions, 21 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9f46f54..fee2a96 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,8 +22,6 @@
//!
//! ~~~yaml
//! path: "."
-//! atime: 1606565868
-//! atime_nsec: 824368155
//! mode: drwxrwxr-x
//! mtime: 1606565867
//! mtime_nsec: 500355545
@@ -45,8 +43,6 @@ const BUF_SIZE: usize = 1024 * 1024;
#[derive(Serialize, Debug)]
pub struct ManifestEntry {
path: PathBuf,
- atime: i64,
- atime_nsec: i64,
#[serde(with = "mode")]
mode: u32,
mtime: i64,
@@ -72,8 +68,6 @@ impl ManifestEntry {
};
Ok(Self {
path: path.to_path_buf(),
- atime: m.st_atime(),
- atime_nsec: m.st_atime_nsec(),
mode: m.st_mode(),
mtime: m.st_mtime(),
mtime_nsec: m.st_mtime_nsec(),
diff --git a/summain.md b/summain.md
index e6a4d15..4652c7e 100644
--- a/summain.md
+++ b/summain.md
@@ -70,7 +70,6 @@ order.
~~~scenario
given an installed summain
given directory empty
-and atime for empty is 123
and mtime for empty is 456
when I run chmod a=rx empty
when I run summain empty
@@ -80,8 +79,6 @@ then output matches file empty.yaml
```{#empty.yaml .file .numberLines}
---
path: empty
-atime: 123
-atime_nsec: 0
mode: dr-xr-xr-x
mtime: 456
mtime_nsec: 0
@@ -96,7 +93,6 @@ sha256: ~
~~~scenario
given an installed summain
given file foo
-and atime for foo is 11
and mtime for foo is 22
when I run chmod a=rw foo
when I run summain foo
@@ -106,8 +102,6 @@ then output matches file foo.yaml
```{#foo.yaml .file .numberLines}
---
path: foo
-atime: 11
-atime_nsec: 0
mode: "-rw-rw-rw-"
mtime: 22
mtime_nsec: 0
@@ -121,7 +115,6 @@ sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
~~~scenario
given an installed summain
given file foo
-and atime for foo is 33
and mtime for foo is 44
when I run chmod a=r foo
when I run summain foo
@@ -131,8 +124,6 @@ then output matches file readonly.yaml
```{#readonly.yaml .file .numberLines}
---
path: foo
-atime: 33
-atime_nsec: 0
mode: "-r--r--r--"
mtime: 44
mtime_nsec: 0
@@ -146,10 +137,8 @@ sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
~~~scenario
given an installed summain
given file aaa
-and atime for aaa is 33
and mtime for aaa is 44
given file bbb
-and atime for bbb is 33
and mtime for bbb is 44
when I run chmod a=r aaa bbb
when I run summain bbb aaa
@@ -159,8 +148,6 @@ then output matches file aaabbb.yaml
```{#aaabbb.yaml .file .numberLines}
---
path: aaa
-atime: 33
-atime_nsec: 0
mode: "-r--r--r--"
mtime: 44
mtime_nsec: 0
@@ -169,8 +156,6 @@ size: 0
sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
---
path: bbb
-atime: 33
-atime_nsec: 0
mode: "-r--r--r--"
mtime: 44
mtime_nsec: 0