summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-14 23:00:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-14 23:00:23 -0400
commitbc5c54c987f548505a3877e8a0e460abe0b2a081 (patch)
tree4074e799eef10edb2060abf9d1ba2863c47b256c /doc
parent96e074bb0333b6952fb9fbce2f0a810ebafd3d2c (diff)
symlink touching fun
When adding files to the annex, the symlinks pointing at the annexed content are made to have the same mtime as the original file. While git does not preserve that information, this allows a tool like metastore to be used with annexed files.
Diffstat (limited to 'doc')
-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