From: Phillip Wood Date: Thu, 14 Mar 2024 17:07:13 GMT Subject: Re: [PATCH v2 0/5] checkout: cleanup --conflict= Message-ID: <329d3570-8aca-4f12-9843-d351133eff15@gmail.com> In-Reply-To: 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=