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-19 Thread Duy Nguyen
On Mon, Apr 20, 2015 at 9:51 AM, Max Kirillov m...@max630.net 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?

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. ... - if

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_format;

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 m...@max630.net 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).

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

[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

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 pclo...@gmail.com 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