Re: [PATCH] pack-refs: dereference .git/packed-refs if it is a symlink
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Apr 18, 2007, 16:09 UTC
- Message-ID
- <alpine.LFD.0.98.0704180908360.2828@woody.linux-foundation.org>
- In-Reply-To
- <20070418102823.GA5586@xp.machine.xx>
On Wed, 18 Apr 2007, Peter Baumann wrote:
Show 6 quoted lines
> > 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