From: しらいしななこ Date: Tue, 29 Apr 2008 21:30:04 GMT Subject: Re: [DOC] more explanation about --git-dir and --work-tree options Message-ID: <200804292130.m3TLUcxl026222@mi0.bluebottle.com> In-Reply-To: <48162EF0.6050705@gmail.com> Quoting Liu Yubao : > I find these two options bring me surprise: > > git init $HOME > git add ~/.vimrc ~/.gvimrc ~/.vim > cd $HOME/work/xxx > ....do some work, then change ~/.vimrc without changing > working directory > git --git-dir $HOME/.git status > > I use --git-dir because I have another .git in $HOME/work/xxx, the > last command surprises me much, it tells me .vim* are all deleted! The behavior at the end user level was outlined earlier in the message http://marc.info/?l=git&m=120390208721287&w=2 A later message http://marc.info/?l=git&m=120445414611494&w=2 proposed an implementation change and described how the various pieces appear to programmers but it was lost when the code was scrapped. I think it is a good idea to add a documentation like this to at least describe the behavior visible by the end users. -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/ ---------------------------------------------------------------------- Finally - A spam blocker that actually works. http://www.bluebottle.com/tag/4