Re: VCS comparison table
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Oct 21, 2006, 17:38 UTC
- Message-ID
- <Pine.LNX.4.64.0610211035170.3962@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.64.0610211007320.3962@g5.osdl.org>
On Sat, 21 Oct 2006, Linus Torvalds wrote:
> > # Tell people we want to work with ".git-1" > export GIT_DIR=.git-1
Actually, I think Jakub's approach is better: you'd be better off doing this as
alias git-1="git --git-dir=.git-1" alias git-2="git --git-dir=.git-2"
and now you should be able to just do
git-1 diff
(or any other git command) and
git-2 diff
and can happily share the same directory and mix git commands without changing an environment variable all the time.
That would still be insane, but it wouldn't likely be _quite_ as confusing (or error-prone in case you forgot to switch the variable).
Linus
PS. I'd still _not_ suggest doing this. It should _work_, but I mean - really..