login
Header Space

 
 

Re: Git checkout preserve timestamp?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Poole <mdpoole@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, Bill Lear <rael@...>, Linus Torvalds <torvalds@...>, Karl <kha@...>, <git@...>
Date: Monday, March 5, 2007 - 8:32 pm

Michael Poole <mdpoole@troilus.org> writes:


These days I use a few working trees that are connected to my
primary repository (which also has a working tree).  The primary
repository is in /src/git, and other ones look like this:

: gitster git.wk0; ls -l .git/
total 120
drwxrwsr-x  3 junio src  4096 Mar  5 16:22 ./
drwxrwsr-x 15 junio src 16384 Mar  5 16:23 ../
-rw-rw-r--  1 junio src    41 Mar  5 16:22 HEAD
lrwxrwxrwx  1 junio src    27 Mar  3 22:53 config -> /src/git/.git/config
lrwxrwxrwx  1 junio src    26 Mar  3 22:53 hooks -> /src/git/.git/hooks/
-rw-rw-r--  1 junio src 82455 Mar  5 16:22 index
lrwxrwxrwx  1 junio src    25 Mar  3 22:53 info -> /src/git/.git/info/
drwxrwsr-x  3 junio src  4096 Mar  3 22:59 logs/
lrwxrwxrwx  1 junio src    28 Mar  3 22:53 objects -> /src/git/.git/objects/
lrwxrwxrwx  1 junio src    32 Mar  3 22:53 packed-refs -> /src/git/.git/packed-refs
lrwxrwxrwx  1 junio src    25 Mar  3 22:53 refs -> /src/git/.git/refs/
lrwxrwxrwx  1 junio src    28 Mar  3 22:53 remotes -> /src/git/.git/remotes/
lrwxrwxrwx  1 junio src    29 Mar  3 22:53 rr-cache -> /src/git/.git/rr-cache/

It shares everything other than HEAD and the index (the reflog
for branches are also shared by a symlink .git/logs/refs
pointing at the one in the primary repository).

This risks confusion for an uninitiated if you update a ref that
is checked out in another working tree, but modulo that caveat
it works reasonably well.

We might want to add an option to 'git-clone' to create
something like this, but I am somewhat worried about the newbie
confusion factor.  Perhaps...

$ git clone --i-know-what-i-am-doing-give-me-an-alternate-working-tree \
  /src/git /src/git.wk0


-
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