From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1473EC433F5 for ; Fri, 27 May 2022 12:32:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354210AbiE0Mcb (ORCPT ); Fri, 27 May 2022 08:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353814AbiE0McW (ORCPT ); Fri, 27 May 2022 08:32:22 -0400 Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBF1418C073 for ; Fri, 27 May 2022 05:12:27 -0700 (PDT) Received: from [90.198.244.89] (helo=[192.168.0.6]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1nuYpI-000Cds-5l; Fri, 27 May 2022 13:12:21 +0100 Message-ID: Date: Fri, 27 May 2022 13:12:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 1/3] rebase.c: state preserve-merges has been removed Content-Language: en-US To: =?UTF-8?Q?Ren=c3=a9_Scharfe?= , =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= , Philip Oakley via GitGitGadget Cc: git@vger.kernel.org References: <0a4c81d8cafdc048fa89c24fcfa4e2715a17d176.1653556865.git.gitgitgadget@gmail.com> <220526.86bkvk7hoo.gmgdl@evledraar.gmail.com> <19baf95d-67d4-d7ed-72a6-96d098171d3a@web.de> From: Philip Oakley In-Reply-To: <19baf95d-67d4-d7ed-72a6-96d098171d3a@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Hi René, On 26/05/2022 14:02, René Scharfe wrote: > Am 26.05.22 um 11:40 schrieb Ævar Arnfjörð Bjarmason: >> On Thu, May 26 2022, Philip Oakley via GitGitGadget wrote: >> >>> From: Philip Oakley >>> >>> Since feebd2d256 (rebase: hide --preserve-merges option, 2019-10-18) >>> this option is now removed as stated in the subsequent release notes. >>> >>> Fix the option tip. >>> >>> Signed-off-by: Philip Oakley >>> --- >>> builtin/rebase.c | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/builtin/rebase.c b/builtin/rebase.c >>> index 7ab50cda2ad..6ce7e98a6f1 100644 >>> --- a/builtin/rebase.c >>> +++ b/builtin/rebase.c >>> @@ -1110,7 +1110,7 @@ int cmd_rebase(int argc, const char **argv, const char *prefix) >>> PARSE_OPT_NOARG | PARSE_OPT_NONEG, >>> parse_opt_interactive), >>> OPT_SET_INT_F('p', "preserve-merges", &preserve_merges_selected, >>> - N_("(DEPRECATED) try to recreate merges instead of " >>> + N_("(REMOVED) try to recreate merges instead of " >>> "ignoring them"), >>> 1, PARSE_OPT_HIDDEN), >>> OPT_RERERE_AUTOUPDATE(&options.allow_rerere_autoupdate), >> I have some local patches for this more generally, but for >> PARSE_OPT_HIDDEN options we never do anything with the "argh" field, >> i.e. it's only used for showing the "git -h" output, and if it's >> hidden it won't be there. > Hidden options are shown if you use --help-all instead of -h. > > OPT_SET_INT_F always sets the struct option member "argh" to NULL. The > string changed above is the "help" member, not "argh". I should probably also add the verb "was" to indicate its historic use ;-) >> So there's no point in changing this string, nor to have translators >> focus on it, it'll never be used. >> >> This series shouldn't fix the general issue (which parse-options.c >> should really be BUG()-ing about, after fixing the existing >> occurances. But For this one we could just set this to have a string of >> "" or something, only the string you're changing in 3/3 will be seen by >> anyone. > What is the general issue? > > Anyway, the new help text explaining what the option once did is a bit > confusing. It would be better to focus on what it's doing now (nothing) > and/or why we still have it (for backward compatibility), I think. > > René P.