From: Duy Nguyen Date: Mon, 20 Apr 2015 03:22:39 GMT Subject: Re: [PATCH v3] config.c: split some variables to $GIT_DIR/config.worktree Message-ID: In-Reply-To: <20150420025110.GD786@wheezy.local> 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. I made some changes for that [1] but haven't posted in the list yet because it's incomplete imo. I should check again after reinitializing the repo, whether core.worktree is in info/config.worktree, if not warn the user. This could happen if the user defines a custom template. [1] https://github.com/pclouds/git/commit/f2276a37039d7a1f99fbcbc72e7d87b0782e4663 -- Duy