login
Header Space

 
 

Git checkout preserve timestamp?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Thursday, March 1, 2007 - 5:36 pm

I often find myself in branch A, with everything checked in and
compiled, wanting to look at something on branch B.  I hop to branch
B, look, and come back to branch A.  Unfortunately, when I then do a
make, files that differed between A and B will be recompiled, as well as
any further dependencies.

I wonder if it would be possible or desirable to have a config flag
that told git to restore the timestamps across branch checkouts in
order to prevent this perturbation.

So, when git does a checkout of a branch, it would look to see which
files in the current branch are changed, tuck away the timestamps for
those, and switch to the new branch.  On return to the former, the
same would be done for the new branch, then after the changed files
were restored, the timestamps would be reset.

One thing this would enable is to be able to hold the compilation
products of multiple branches at the same time in the same working
tree, switch back and forth between branches, and only have to compile
code that you actually modify.  Currently, we store compilation
products in a directory that is composed of the architecture, compiler,
compiler options, and so forth, among which also could be the branch
name.

Anyway, just an idea I thought worth batting about.


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