Re: [DOC] more explanation about --git-dir and --work-tree options
Quoting Liu Yubao <yubao.liu@gmail.com>:
Show 11 quoted lines
> 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