Re: Git checkout preserve timestamp?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Monday, March 5, 2007 - 3:56 pm

Hi,

On Mon, 5 Mar 2007, Bill Lear wrote:


It may not be infeasible.

But it is wrong. It "fixes" a totallc clear idiom, namely that every time 
a file is written into, the timestamp changes. And guess what, "touch 
<file>" is the best proof that sometimes, you want that this happens, even 
if the content stays the same.


Of course this works. That is a fundamental feature of Git: if you strip a 
non-bare repo of its working directory, then it becomes a bare repo.


This approach is so fragile! It is invasive, easy to get wrong (count the 
ways how to invalidate the timestamp), and serves only an obscure use 
case, which is better solved otherwise to begin with.


FWIW I have to agree here. I saw quite a few projects go wrong, because 
management insisted on abolishing a perfectly good design, just because 
they had this pet idea.


No. This is not what Linus was referring to (unless I am really wrong 
here, which I refuse to believe).

We pointed out, in several ways, how much easier it is to create a 
throw-away working directory.

It is easy, robust, and can be done _right now_ with Git.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git checkout preserve timestamp?, Bill Lear, (Thu Mar 1, 2:36 pm)
Re: Git checkout preserve timestamp?, Alex Riesen, (Thu Mar 1, 2:48 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Thu Mar 1, 3:13 pm)
Re: Git checkout preserve timestamp?, Linus Torvalds, (Thu Mar 1, 3:25 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Thu Mar 1, 3:32 pm)
Re: Git checkout preserve timestamp?, Karl , (Fri Mar 2, 2:14 am)
Re: Git checkout preserve timestamp?, Bill Lear, (Fri Mar 2, 6:24 am)
Re: Git checkout preserve timestamp?, Bart Trojanowski, (Fri Mar 2, 8:01 am)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Fri Mar 2, 8:18 am)
Re: Git checkout preserve timestamp?, Karl , (Fri Mar 2, 9:21 am)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Fri Mar 2, 12:21 pm)
Re: Git checkout preserve timestamp?, Karl , (Mon Mar 5, 12:23 am)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 4:32 am)
Re: Git checkout preserve timestamp?, Andy Parkins, (Mon Mar 5, 5:13 am)
Re: Git checkout preserve timestamp?, Karl , (Mon Mar 5, 5:28 am)
Re: Git checkout preserve timestamp?, Karl , (Mon Mar 5, 5:33 am)
Re: Git checkout preserve timestamp?, Andy Parkins, (Mon Mar 5, 6:19 am)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 7:46 am)
Re: Git checkout preserve timestamp?, Karl , (Mon Mar 5, 7:53 am)
Re: Git checkout preserve timestamp?, Andy Parkins, (Mon Mar 5, 9:01 am)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 9:28 am)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 12:04 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 12:16 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 12:59 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 1:44 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 2:42 pm)
Re: Git checkout preserve timestamp?, Linus Torvalds, (Mon Mar 5, 2:50 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 3:02 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 3:25 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 3:29 pm)
Re: Git checkout preserve timestamp?, Linus Torvalds, (Mon Mar 5, 3:37 pm)
Re: Git checkout preserve timestamp?, Matthieu Moy, (Mon Mar 5, 3:39 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 3:56 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 4:20 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 4:27 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 4:32 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 4:38 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 4:50 pm)
Re: Git checkout preserve timestamp?, Martin Langhoff, (Mon Mar 5, 5:06 pm)
Re: Git checkout preserve timestamp?, Michael Poole, (Mon Mar 5, 5:06 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 5:20 pm)
Re: Git checkout preserve timestamp?, Theodore Tso, (Mon Mar 5, 5:21 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 5:24 pm)
Re: Git checkout preserve timestamp?, Junio C Hamano, (Mon Mar 5, 5:32 pm)
Re: Git checkout preserve timestamp?, Michael Poole, (Mon Mar 5, 5:37 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 6:34 pm)
Re: Git checkout preserve timestamp?, Johannes Schindelin, (Mon Mar 5, 6:40 pm)
Re: Git checkout preserve timestamp?, Bill Lear, (Mon Mar 5, 6:59 pm)