Re: Git checkout preserve timestamp?

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

Hi,

On Mon, 5 Mar 2007, Bill Lear wrote:


Bill, maybe you don't want to hear it, but for all those following this 
thread, here is why you are wrong:

"make" does _not_ match the time stamps of xyz.c and xyz.o. After you 
"make", the only thing which is guaranteed is that if xyz.c is _newer_ 
than xyz.o, the compiler is started.

Example:

00:05 you pull upstream into your master branch, which has a newer xzy.c
00:07 you type make. xyz.o is built, because make sees that xyz.c is 
      newer than xyz.o
00:12 you checkout your side branch, xyz.c is updated.
00:13 you type make, and again xzy.o is built, because xyz.c is newer than 
      xyz.o
00:25 you switch back to your master branch.

Now, if your wish would be granted, and xyz.c has the same timestamp as 
before, then it _still_ is older than xyz.o. So make will not rebuild it.

BUT xyz.o is actually compiled from the side branch's version of xyz.c!

Hth,
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)