Re: [long] worktree setup cases
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Oct 22, 2010, 05:36 UTC
- Message-ID
- <AANLkTi=7R6nfdXQ10hme87xPPVnomZu+m9A_SZ8j8dpk@mail.gmail.com>
- In-Reply-To
- <20101022050011.GA27179@nibiru.local>
On Fri, Oct 22, 2010 at 12:00 PM, Enrico Weigelt <weigelt@metux.de> wrote:
Show 15 quoted lines
> * Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote: >> On Fri, Oct 22, 2010 at 1:51 AM, Enrico Weigelt <weigelt@metux.de> wrote: >> >> Also the "relative to $GIT_DIR" may be confusing. If $GIT_DIR points >> >> to a file that points to a true repo, then to which one it is >> >> relative? >> > >> > Despite the fact that I doubt the usefulness of an .git file at >> > all, it IMHO should be interpreted as an kind of userland symlink. >> >> I do find .git file useful. I put my worktree in a server where it can >> be wiped out completely. So I don't want to put my .git there. .git >> file can be used this case so I don't have to set >> GIT_DIR/GIT_WORK_TREE every time and my .git is safe elsewhere. > > Why not using a symlink here ?
Paranoia. A fault in Makefile's clean rule may make deletion follow symlinks. Also symlinks are not available everywhere.
-- Duy