From: Junio C Hamano Date: Sun, 14 Jun 2020 21:37:07 GMT Subject: Re: [PATCH] checkout: teach --worktree Message-ID: In-Reply-To: Eric Sunshine writes: >> + When writing contents, only modify files in the worktree. Do not >> + modify the index. This option is essentially a no-op when used >> + without a ``. > > Why a no-op rather than actually diagnosing that --worktree makes no > sense in that case and erroring out? Should it be a no-op? If checking paths out of the index, with or without the new --worktree option, the files in the working tree will be affected and the contents in the index won't change.