From: Maaartin Date: Wed, 19 Jan 2011 18:51:02 GMT Subject: Re: [PATCH 3/3] setup: always honor GIT_WORK_TREE and core.worktree Message-ID: <4D373296.6030101@seznam.cz> In-Reply-To: <20110119124230.GD23222@burratino> On 11-01-19 13:42, Jonathan Nieder wrote: > Unfortunately the existence of GIT_WORK_TREE makes it tempting to > use without setting GIT_DIR. Maybe I'm asking nonsense, but why should I always use both? On the command line, I either cd to my (alternate) working tree and use GIT_DIR only or the other way round. I used both several times when I wanted to compare the (normal) working tree with another commit using something better than git-diff (git-difftool didn't work for me on cygwin).