From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4E277351C for ; Thu, 14 Mar 2024 17:07:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710436038; cv=none; b=p5TK4dycsrmMr9n+81dZ+97lmjTHEV9i+yBqEmwXKZ2kZ4xMTFjKXpaCQqjUZZlk6j5bJLOCLGL7SbA91OBuK+3JMs4uKJEToQXtI+PlOK3LdAg6vamTJg0rDtdWXnorcWyG1l41BTuSOnimxW0ck2Xc6wc2czwmZMuHDVmxE3s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710436038; c=relaxed/simple; bh=6kC5o/pPy5qPdJ9SZ7gzKoqKAGrR1EdJmGnLUNa6sHo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fXrPNFMEPAxeReWPICbmiB5ckSiahtWoWSV0aXlm0qAog6GQ3NfAi2dUkazfHYsRKd69QWvWSnkjHJrlbucyWz92TprSTDX5nnsFartQLubYTv9KNUUKNAL2C3nTb/fkT+M05W/TgOeIuG2FmHYCoqJeNG05GPENFQ+WKb2DIA8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hadJ7woG; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hadJ7woG" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-413f936a17cso3380095e9.1 for ; Thu, 14 Mar 2024 10:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710436035; x=1711040835; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=4b70tix13wc/dX3Z2k+k59FACS3oMQ5ZwhVEslSzUd4=; b=hadJ7woG4rl0qCJBeGEvTd19hLoYOd0QJMIM00VWw7CzxRw2LFgx0BGQXvq4jWJ9Ir RMx4e8K1MZQUSTF8XiHP5q3AoBxhyICdGzOquE1QzSaDGdQ7vqcjQA/TuWexdN1h7p++ 0he75pJPg3A3cqK0F2yKdetQgWiIM4XF683nqFAXcOY4JPZ0PIAzxif8dq9JxijDFcHe 8XJWVQDB1oKg1xjkuTPKGuqz5PVnM56WLEoJnJ/FWBYSz7RwEKemPTbhRi6hieTI4JcZ 1GYafmYe3FfaPhtnLKrp4zuhQdj2PyN+pcS5htUJNuI8ubTAjjIhlwXZR2RdCQunmgXP 8vCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710436035; x=1711040835; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4b70tix13wc/dX3Z2k+k59FACS3oMQ5ZwhVEslSzUd4=; b=U5V0HqwP5SvUSQ+Qx8lWBkvbTxkIZu0EJ3ZtvZWYq/0WYS7hh/FJdZ+qYLxY6CmmJR yhNopArhrSDvjvkdSE4vnIcvkCXQbZnQ4nvPnide8U+4CtTSGqo5kjoehutgJidxY3Uf xwHlbweBDegaTfPdLmaZ1RNrQ8QOigVGZhvujM4RDKLEcBg4l46Z783aHea8jMcj3RsU 84C+8cK9PJy0CXjNmb89OkmGBItBe1HRTwmbE8xK/Q2LHCoU1zkUofFWGG3stkfFbVNZ xxElB2h8UXMiiQJ/FfxiEE/DiG/5GLS2kw/HFtCnM8MgGbXr4piw4JmV4vuGcFFf4BUI 3NkA== X-Forwarded-Encrypted: i=1; AJvYcCXG0satVbjmw/iC8lccTygDSDNSyvPi5KukaBBztA4TIXueJI0RaFmfVIvZi4VcM5uriMXzAZ6CFN7swrQ4ZzZXvoOC X-Gm-Message-State: AOJu0YyJ5Mck9Fpxf9crAmB3BxqbJr/eCbyud3byZ7CPpAjmTCBs423i 1owrqJeyHP288OUF+zZh3IsBs4zBPPlSylTT8+o295MYgLxW2LRt X-Google-Smtp-Source: AGHT+IGE7oHhDlBHo5bN5ev1/qTmNIQAWUExt9AYIIPbN+mob0rpgcHdrK2a7UPO8JD9k37EGV1VEg== X-Received: by 2002:a05:600c:19c6:b0:412:e2c3:4b6 with SMTP id u6-20020a05600c19c600b00412e2c304b6mr1993903wmq.20.1710436034735; Thu, 14 Mar 2024 10:07:14 -0700 (PDT) Received: from ?IPV6:2a0a:ef40:6a5:fd01:2d60:4cd4:e8ec:b443? ([2a0a:ef40:6a5:fd01:2d60:4cd4:e8ec:b443]) by smtp.gmail.com with ESMTPSA id p22-20020a05600c1d9600b00413ea933aafsm2990296wms.26.2024.03.14.10.07.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Mar 2024 10:07:14 -0700 (PDT) Message-ID: <329d3570-8aca-4f12-9843-d351133eff15@gmail.com> Date: Thu, 14 Mar 2024 17:07:13 +0000 Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: phillip.wood@dunelm.org.uk Subject: Re: [PATCH v2 0/5] checkout: cleanup --conflict= Content-Language: en-US To: Phillip Wood via GitGitGadget , git@vger.kernel.org Cc: Elijah Newren , Junio C Hamano , Phillip Wood References: From: Phillip Wood In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14/03/2024 17:05, Phillip Wood via GitGitGadget wrote: Here is the cover letter - I don't know why GGG keeps omitting it Passing an invalid conflict style name such as "--conflict=bad" to "git checkout" gives the error message error: unknown style 'bad' given for 'merge.conflictstyle' which is unfortunate as it talks about a config setting rather than the option given on the command line. This series refactors the implementation to pass the conflict style down the call chain to the merge machinery rather than abusing the config setting. Thanks to Junio for his comments on v1, the changes in v2 are: - renamed parse_conflict_style() to parse_conflict_style_name() - parse --conflict using OPT_CALLBACK to avoid storing the string argument - added a new patch to fix the interaction of --conflict with --no-merge > Phillip Wood (5): > xdiff-interface: refactor parsing of merge.conflictstyle > merge-ll: introduce LL_MERGE_OPTIONS_INIT > merge options: add a conflict style member > checkout: cleanup --conflict=