Re: [RFC] introduce GIT_WORK_DIR environment variable
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 11, 2007, 21:04 UTC
- Message-ID
- <7vodmzv6dq.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0703111326170.9690@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 9 quoted lines
> So let's say that you have a git repository for tracking all that. The > "working tree" for that git repository would be your home directory. > > Now, imagine that you *also* want to track something else in git, that you > *also* have in your home directory. Say your ".bashrc" files etc. They > have nothing to do with your music tracking setup, so you don't want to > track it in the same git repository, and you want to have a totally > different .git/index file for those. But again, the *working*tree* is > actually your home directory.
That is a good example usage schenario; we would need to think about what to do with .gitignore (and .gitattributes if we will have that in-tree), though.