Re: Preserving timestamps with git

2010-05-29 Thread Olaf TNSB
On Fri, May 28, 2010 at 10:45 PM, Jakob Voss wrote: > > In my homedir I have a "mypub" directory/repository with lots of publications > (presentations, articles, drafts etc.) that I created and partly published > over the years[*]. I frequently look up old drafts and publications and > sometime

Re: Preserving timestamps with git

2010-05-28 Thread Jakob Voss
Olaf TNSB wrote: Can you explain (or give a simple example) why you need the timestamps to be "correct". > > After moving to a versioned homedir (and getting my mind around what > that means) I've never worried about the revision time of my files. I > just knew they were either the most recent

Re: Preserving timestamps with git

2010-05-27 Thread Olaf TNSB
Hi Jakob, Can you explain (or give a simple example) why you need the timestamps to be "correct". After moving to a versioned homedir (and getting my mind around what that means) I've never worried about the revision time of my files. I just knew they were either the most recent version or a part

Re: Preserving timestamps with git

2010-05-27 Thread Chanoch (Ken) Bloom
On Thu, 2010-05-27 at 17:44 +0200, Jakob Voss wrote: > Thanks, this will be helpful for special repositories that need to > preserve file permissions. But as long as I use git for replication I > prefer to have the timestamp metadata directly in the commit as if I > would commit everytime I cha

Re: Preserving timestamps with git

2010-05-27 Thread Jakob Voss
On 27.05.2010 13:26, martin f krafft wrote: But git-utime is only one side of the process. How do I 1) reset the commit time of selected files in the repository to their last modification timestamp (for the files that I have already commited) man touch I thought about rewriting the history

Re: Preserving timestamps with git

2010-05-27 Thread martin f krafft
also sprach Jakob Voss [2010.05.26.1826 +0200]: > But git-utime is only one side of the process. How do I > > 1) reset the commit time of selected files in the repository to their > last modification timestamp (for the files that I have already > commited) man touch > 2) add and commit a set of

Preserving timestamps with git

2010-05-26 Thread Jakob Voss
Hi, I started to move the content of my home directory to git repositories and stumbled upon a difficult difference between rsync and git: git does not preserve timestamps. This makes sense for code-repositories but if I replicate my home directory I expect that modification times are not alw