git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git checkout preserve timestamp?
@ 2007-03-01 21:36 Bill Lear
  2007-03-01 21:48 ` Alex Riesen
                   ` (3 more replies)
  0 siblings, 4 replies; 51+ messages in thread
From: Bill Lear @ 2007-03-01 21:36 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2007-03-06 18:40 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 21:36 Git checkout preserve timestamp? Bill Lear
2007-03-01 21:48 ` Alex Riesen
2007-03-01 22:13 ` Johannes Schindelin
2007-03-01 22:25 ` Linus Torvalds
2007-03-01 22:32   ` Johannes Schindelin
2007-03-02  9:14 ` Karl Hasselström
2007-03-02 13:24   ` Bill Lear
2007-03-02 15:01     ` Bart Trojanowski
2007-03-02 15:18     ` Johannes Schindelin
2007-03-02 16:21       ` Karl Hasselström
2007-03-02 19:21         ` Johannes Schindelin
2007-03-05  7:23           ` Karl Hasselström
2007-03-05 11:32             ` Johannes Schindelin
2007-03-05 12:28               ` Karl Hasselström
2007-03-05 19:04               ` Bill Lear
2007-03-05 19:16                 ` Johannes Schindelin
2007-03-05 19:59                   ` Bill Lear
2007-03-05 20:44                     ` Johannes Schindelin
2007-03-05 21:42                       ` Bill Lear
2007-03-05 21:50                         ` Linus Torvalds
2007-03-05 22:03                           ` Matthieu Moy
2007-03-05 22:25                           ` Bill Lear
2007-03-05 22:37                             ` Linus Torvalds
2007-03-05 23:20                               ` Bill Lear
2007-03-05 23:32                                 ` Johannes Schindelin
2007-03-05 23:38                                   ` Bill Lear
2007-03-05 23:50                                     ` Johannes Schindelin
2007-03-06  0:06                                       ` Michael Poole
2007-03-06  0:20                                         ` Johannes Schindelin
2007-03-06  0:37                                           ` Michael Poole
2007-03-06  1:40                                             ` Johannes Schindelin
2007-03-06  0:32                                         ` Junio C Hamano
2007-03-06 18:39                                           ` Sergio Callegari
     [not found]                                         ` <7vo dn7w6rz.fsf@assigned-by-dhcp.cox.net>
2007-03-06  1:21                                           ` Jakub Narebski
2007-03-06  0:24                                       ` Bill Lear
2007-03-06  1:34                                         ` Johannes Schindelin
2007-03-06  1:59                                           ` Bill Lear
2007-03-06  0:06                                     ` Martin Langhoff
2007-03-06  0:21                                     ` Theodore Tso
2007-03-05 22:39                             ` Matthieu Moy
2007-03-05 22:56                             ` Johannes Schindelin
2007-03-05 23:27                               ` Bill Lear
2007-03-05 22:02                         ` Johannes Schindelin
2007-03-05 22:29                           ` Bill Lear
2007-03-05 12:13         ` Andy Parkins
2007-03-05 12:33           ` Karl Hasselström
2007-03-05 13:19             ` Andy Parkins
2007-03-05 14:53               ` Karl Hasselström
2007-03-05 14:46           ` Bill Lear
2007-03-05 16:01             ` Andy Parkins
2007-03-05 16:28               ` Bill Lear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).