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

2015-04-19 Thread Duy Nguyen
On Mon, Apr 20, 2015 at 9:51 AM, Max Kirillov wrote: > By the way, if checkout --to run on repository created > before the feaure added, the linked checkout will not be > able to use own variables. Should checkout --to check that > the file exists and create it in case it does not? Yes it should.

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

2015-04-19 Thread Max Kirillov
On Sat, Apr 18, 2015 at 06:10:23PM +0700, Duy Nguyen wrote: > On Tue, Apr 14, 2015 at 02:37:39AM +0300, Max Kirillov wrote: > > On Tue, Mar 31, 2015 at 07:14:39PM +0700, Nguyễn Thái Ngọc Duy wrote: > > > core.worktree and core.bare, which are treated specially in 31e26eb [1], > > > are now moved to

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

2015-04-18 Thread Duy Nguyen
On Tue, Apr 14, 2015 at 02:37:39AM +0300, Max Kirillov wrote: > On Tue, Mar 31, 2015 at 07:14:39PM +0700, Nguyễn Thái Ngọc Duy wrote: > > core.worktree and core.bare, which are treated specially in 31e26eb [1], > > are now moved to info/core.worktree and the special treatment reverted. > <...> > >

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

2015-04-13 Thread Max Kirillov
On Tue, Mar 31, 2015 at 07:14:39PM +0700, Nguyễn Thái Ngọc Duy wrote: > core.worktree and core.bare, which are treated specially in 31e26eb [1], > are now moved to info/core.worktree and the special treatment reverted. <...> > - if (get_common_dir(&sb, gitdir)) > - fn = check_repo_f

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

2015-04-03 Thread Duy Nguyen
On Thu, Apr 2, 2015 at 3:56 AM, Max Kirillov wrote: > On Tue, Mar 31, 2015 at 07:14:39PM +0700, Nguyễn Thái Ngọc Duy wrote: >> The general principle is like in the last mail: .git/config is for >> both shared and private keys of main worktree (i.e. nothing is >> changed from today). .git/workt

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

2015-04-01 Thread Max Kirillov
On Tue, Mar 31, 2015 at 07:14:39PM +0700, Nguyễn Thái Ngọc Duy wrote: > The general principle is like in the last mail: .git/config is for > both shared and private keys of main worktree (i.e. nothing is > changed from today). .git/worktrees/xx/config.worktree is for > private keys only (and p

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

2015-03-31 Thread Duy Nguyen
On Tue, Mar 31, 2015 at 7:14 PM, Nguyễn Thái Ngọc Duy wrote: > The general principle is like in the last mail: .git/config is for > both shared and private keys of main worktree (i.e. nothing is > changed from today). .git/worktrees/xx/config.worktree is for > private keys only (and private k

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

2015-03-31 Thread Nguyễn Thái Ngọc Duy
.git/info/config.worktree is a pattern list that splits .git/config in to sets, the common set that does not match the patterns and the worktree set. In normal worktree, or in the main worktree when "git checkout --to" is used, both sets are stored in .git/config. Nothing interesting. In linked w