login
Header Space

 
 

Re: Git checkout preserve timestamp?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, <kha@...>, <git@...>
Date: Monday, March 5, 2007 - 6:25 pm

On Monday, March 5, 2007 at 13:50:45 (-0800) Linus Torvalds writes:

Maybe, maybe not.  Each argument I've seen doesn't convince me.  Sure,
it may be MESSY.  It may be UGLY, and therefore undesirable, but I
don't think any of the arguments have conclusively shown that it
is WRONG or INFEASIBLE in any way.


Why should I care whether git knows this?  I never said it should.  As
I said, if I have make products in separate, per-branch directories (a
minor extension to my current make system), I don't see how this would
be confusing in the least.  Git should only care if the content of the
file in the index changes.  It shouldn't care in the least about my
make products.


Here's the flow.  Perhaps I'm fundamentally confused, and I'll be
the first to admit that is true in plenty of ways:

I edit sourcefile.c, compile it, then commit it with
N=timestamp(sourcefile.c) on master.  N is <
timestamp(.master/sourcefile.o).  I then switch to branchX.  N is
stored by git for master:sourcefile.c.  No stored timestamp are on
this branch, so the file gets the timestamp it gets on checkout
M=timestamp(sourcefile.c).  I compile the file again, all is well.  I
move back to master branch.  Git stores M as branchX:sourcefile.c Git
checks out the file, and stamps it with N.  I do a make.  No
recompilation happens.  I switch back to branchX, the file is checked
out and stamped with timestamp M.  I do a make.  No recompilation
happens.  Happy happy, joy joy.  If someone pushes into my repo,
as Johannes suggested (how that would work, being a non-bare
repo, is beyond me, but whatever), the timestamp for that file
on that branch would be invalidated, and the file would get
whatever timestamp it got when it was written to disk.

Now, all of this may be DISTASTEFUL, UGLY, POOR DESIGN, etc., but I
don't see how it is WRONG.  As someone who has professed the motto
"actually useful is a lot better than clean, but not as useful",
I fail to see what has gotten you so exercised about this.


I am not asking for this, I'm just arguing the point, waiting for a
convincing argument rather than having someone call me "idiotic and
incompetent" and "stupid" for asking for it in the first place and
carrying on in the spirit of discovery and open learning.

For your information, I did in fact answer, politely, thanking the
poster for pointing our hash-based "stamps" that could do this sort of
thing.  I downloaded the software pointed to and tried it out,
unsuccessfully, as it will require redoing our make system (not
that I'm opposed to that, just that it will take time).

So ... thanks.


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