summaryrefslogtreecommitdiff
path: root/doc/bugs/softlink_atime.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'doc/bugs/softlink_atime.mdwn')
-rw-r--r--doc/bugs/softlink_atime.mdwn14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/bugs/softlink_atime.mdwn b/doc/bugs/softlink_atime.mdwn
index 49e26013f..ebb040dd1 100644
--- a/doc/bugs/softlink_atime.mdwn
+++ b/doc/bugs/softlink_atime.mdwn
@@ -21,3 +21,17 @@ Optionally, editing the meta-data should change the times in all annexes.
>>> unlikely to do it better.
>>>> OK, thanks for the clarification. Would it be acceptable for you to put the timestamps into the metastore with vanilla git? If such an option existed, everyone would be able to benefit and not just me. -- RichiH
+
+>>>>> I've now committed to git changes to make git-annex add make
+>>>>> symlinks that reflect the original file's mtime. (It's not possible
+>>>>> to set the ctime of a symlink; nor would you want to as messing with
+>>>>> ctimes can break backup software ... and atime doesn't much matter.)
+>>>>>
+>>>>> So all you have to do is make the pre-commit hook call
+>>>>> [metastore](http://david.hardeman.nu/software.php). The hook
+>>>>> would look like this: ---[[Joey]] [[!tag done]]
+
+ #!/bin/sh
+ git annex pre-commit .
+ metastore --save
+ git add .metadata