Re: [PATCH v2] config.c: split some variables to $GIT_DIR/config.worktree

2015-03-30 Thread Max Kirillov
On Sun, Mar 29, 2015 at 08:25:33AM +0700, Duy Nguyen wrote: > I'm not sure if "it" means $GIT_DIR/config.worktree or > $GIT_DIR/info/config.worktree. At this point $GIT_COMMON_DIR is not > involved (i.e. you can still spit config even in a normal repo). > .../info/config.worktree may be shared, I g

Re: [PATCH v2] config.c: split some variables to $GIT_DIR/config.worktree

2015-03-28 Thread Duy Nguyen
On Fri, Mar 27, 2015 at 5:19 AM, Max Kirillov wrote: > On Thu, Mar 26, 2015 at 07:04:24PM +0700, Nguyễn Thái Ngọc Duy wrote: >> When you define $GIT_DIR/info/config.worktree, which contains of >> gitignore-style patterns (*), config variables that match these >> patterns will be saved in $GIT_DIR/

Re: [PATCH v2] config.c: split some variables to $GIT_DIR/config.worktree

2015-03-26 Thread Max Kirillov
On Thu, Mar 26, 2015 at 07:04:24PM +0700, Nguyễn Thái Ngọc Duy wrote: > When you define $GIT_DIR/info/config.worktree, which contains of > gitignore-style patterns (*), config variables that match these > patterns will be saved in $GIT_DIR/config.worktree instead of > $GIT_DIR/config. Should it ra

[PATCH v2] config.c: split some variables to $GIT_DIR/config.worktree

2015-03-26 Thread Nguyễn Thái Ngọc Duy
When you define $GIT_DIR/info/config.worktree, which contains of gitignore-style patterns (*), config variables that match these patterns will be saved in $GIT_DIR/config.worktree instead of $GIT_DIR/config. On the surface, they are just like any other variables. You can read or modify them with `