Re: [RFC] separate .git from working directory
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Oct 11, 2006, 21:55 UTC
- Message-ID
- <fcaeb9bf0610111455y225237cmdbaadbf294686d8e@mail.gmail.com>
- In-Reply-To
- <BAYC1-PASMTP10003954B66E10247020A7AE140@CEZ.ICE>
On 10/11/06, Sean <seanlkml@sympatico.ca> wrote:
Show 9 quoted lines
> You can export a GIT_DIR manually pretty easily if you want to move > the .git directory somewhere else. Also you could make a "git find" > shell script named "gf" that does something like: > > #/bin/sh > find "$@" ! -path '*/.git/*' > > Which would let you type "gf -name blah" and automatically ignore > the .git directory.
It should work. However I would rather use "normal" find than specialized ones. Imagine somedays I hate find and start to love grep, I would have to find out --exclude option and create new "gg" script. In worse cases where recursive commands don't support filtering, I have no chance to filter out .git directories.
> > Sean
-- Duy