Re: [PATCH 5/8] work-trees are allowed inside a git-dir
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 27, 2007, 20:51 UTC
- Message-ID
- <7vejity3h8.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0707271957250.14781@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 13 quoted lines
> It is allowed to call > > $ git --git-dir=../ --work-tree=. bla > > when you really want to. In this case, you are both in the git directory > and in the working tree. > > The earlier handling of this situation was seriously bogus. For regular > working tree operations, it checked if inside git dir. That makes no > sense, of course, since the check should be for a work tree, and nothing > else. > > Fix that.
I do not doubt this patch makes the above command line to work better, but I have to wonder how that layout is useful. Care to give a use case or two in the commit log message?