From: Junio C Hamano Date: Tue, 28 Feb 2023 01:02:23 GMT Subject: Re: [PATCH v2] restore: fault --staged --worktree with merge opts Message-ID: In-Reply-To: <20230226184354.221-1-andy.koppe@gmail.com> Andy Koppe writes: > + /* > + * Reject --staged option to the restore command when combined with > + * merge-related options. Use the accept_ref flag to distinguish it > + * from the checkout command, which does not accept --staged anyway. Understandable. > + * `restore --ours|--theirs --worktree --staged` could mean resolving > + * conflicted paths to one side in both the worktree and the index, > + * but does not currently. Understandable, especially with an understanding that "does not currently" hints our wish to eventually support it. > + * `restore --merge|--conflict=