Re: [PATCH] pack-refs: dereference .git/packed-refs if it is a symlink
- From
- Peter Baumann <waste.manager@gmx.de>
- Date
- Apr 18, 2007, 17:47 UTC
- Message-ID
- <20070418174753.GC5913@xp.machine.xx>
- In-Reply-To
- <alpine.LFD.0.98.0704180908360.2828@woody.linux-foundation.org>
On Wed, Apr 18, 2007 at 09:09:13AM -0700, Linus Torvalds wrote:
Show 15 quoted lines
> > > On Wed, 18 Apr 2007, Peter Baumann wrote: > > > > git-new-workdir creates a new working directory where everything > > necessary, including .git/packed-refs, is symlinked to your master repo. > > But git-pack-refs breaks the symlink, so you could accidentally loose some > > refs. This fixes it to first dereference .git/packed-refs if it is a > > symlink. > > Wouldn't it be nicer to instead make "git gc" *notice* the fact that we're > in a workdir, and just "cd" to the main git repository instead? > > Linus >
Don't think so. Because then all the low level tools aren't aware of this. And restricting a WorkDir to use only porcelanish commands isn't what I want. And teaching every tool about symklinked workdirs doesn't sound right to me.
-Peter