Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2014-09-24 10:52:03 -04:00
commit 459db7a367
10 changed files with 80 additions and 12 deletions

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="209.250.56.144"
subject="comment 1"
date="2014-09-23T20:27:25Z"
content="""
The closest git comes to storing a timestamp is the date of the last commit of a file for mtime, and first commit for ctime. However, those are pretty expensive to look up for a given file. And git doesn't try to preserve timestamps in checkouts at all, which argues that git-annex, at least at the command line, should not either.
"""]]

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawmK0703vNSIQsP1mGf-4MAPnsBZiSc6yVo"
nickname="Emre"
subject="comment 2"
date="2014-09-23T20:58:10Z"
content="""
Thanks Joey for the comment.
But when syncing two repos, timestamps are critical at least for my use case. I can't lose this info. Even if it's expensive.
Appreciate if you can consider to add it for direct mode repos, ie when a file is synced to another repo and created there, it shall carry at least the mtime of the file in source repo. Owncloud sync does it, btsync does it, although I know git-annex is different than those.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawmK0703vNSIQsP1mGf-4MAPnsBZiSc6yVo"
nickname="Emre"
subject="comment 3"
date="2014-09-23T21:15:29Z"
content="""
Btw, git storing the last commit time as Mtime is not enough, it shall store the original timestamp of the file, not the date of commit. Hope I could explain and hope this is something doable.
"""]]

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="http://svario.it/gioele"
nickname="gioele"
subject="comment 4"
date="2014-09-24T07:15:09Z"
content="""
You can try to store the timestamps just before commit and restore them on checkout.
Have a look at [metastore](https://github.com/przemoc/metastore): it is a ready-made solution for plain git. Maybe you can adapt it to git-annex.
"""]]