From 2b5b5eb8d98d60aeecd44cfa020fbcfb31b9d723 Mon Sep 17 00:00:00 2001 From: "lykos@d125a37d89b1cfac20829f12911656c40cb70018" Date: Fri, 23 Mar 2018 19:01:02 +0000 Subject: [PATCH] Added a comment --- ...nt_1_7fef3484f3019539c0a305d5f4a801ce._comment | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/bugs/file_modification_time_should_be_stored_in_exactly_one_metadata_field/comment_1_7fef3484f3019539c0a305d5f4a801ce._comment diff --git a/doc/bugs/file_modification_time_should_be_stored_in_exactly_one_metadata_field/comment_1_7fef3484f3019539c0a305d5f4a801ce._comment b/doc/bugs/file_modification_time_should_be_stored_in_exactly_one_metadata_field/comment_1_7fef3484f3019539c0a305d5f4a801ce._comment new file mode 100644 index 0000000000..6d49f7d77a --- /dev/null +++ b/doc/bugs/file_modification_time_should_be_stored_in_exactly_one_metadata_field/comment_1_7fef3484f3019539c0a305d5f4a801ce._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="lykos@d125a37d89b1cfac20829f12911656c40cb70018" + nickname="lykos" + avatar="http://cdn.libravatar.org/avatar/085df7b04d3408ba23c19f9c49be9ea2" + subject="comment 1" + date="2018-03-23T19:01:02Z" + content=""" +The year, month and day fields are used when creating views that sort files by modification date, eg. `git annex view year=* month=* day=*`. This cannot be done using timestamps. I agree that an additional timestamp field is a good idea, so I modified the pre-commit-annex hook by adding + + field=\"mtime\" + value=$(stat -Lc %Y \"$f\") + addmeta \"$f\" \"$field\" \"$value\" + +at the end of the process function. +"""]]