This commit is contained in:
Joey Hess 2022-09-20 14:02:09 -04:00
parent f5a3a12360
commit 3d51f866d3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="joey"
subject="""comment 14"""
date="2022-09-20T17:55:45Z"
content="""
Note that `git-annex add` does preserve the timestamp of the file
while adding it to the annex. Much the same as a file's timestamp is
the same after `git add` as it was before running that command.
When `git-annex add` replaces a file with a symlink, it even makes the
symlink's timestamp be the same as the original file.
What git-annex does not do is try to store the timestamp in git and arrange
for clones that receive the file to get the same timestamp. There are lots
of things like this that someone *might* want git to preserve, but git
doesn't, and it's out of scope for git-annex to try to work around git's
limitations in these areas. Plenty of room for other tools that add
git tracked timestamps, etc. Many such tools exist.
"""]]