Thread View: linux.kernel.git
3 messages
3 total messages
Started by Junio C Hamano
Sat, 14 Nov 2026 12:45
Re: [PATCH v4 00/12] builtin/rerere: convert to use subcommands
Author: Junio C Hamano
Date: Sat, 14 Nov 2026 12:45
Date: Sat, 14 Nov 2026 12:45
28 lines
13821 bytes
13821 bytes
Does the new syntax introduce a subtle UI regression that does not
allow certain options before subcommands? We used to take "git
rerere --skip-locked gc", but now it has to be spelled as "git
rerere gc --skip-locked", it seems.
I do not particularly care about the '--skip-locked' option itself,
and I personally prefer to see options after non-options as a
general CLI principle, but it seems that it is now required to give
the option after the "gc" subcommand.
I do not know how often people run "git rerere" with these
subcommands themselves. This subtle change in the CLI may go
unnoticed in a smaller project, but because we probably have more
than a few thousand users, I am afraid that somebody will notice.
In the transcript below, "rungit TRACK" is my short-hand to run
version of "git" from that integration branch.
$ rungit master rerere --skip-locked gc
$ rungit next rerere --skip-locked gc
$ rungit seen rerere --skip-locked gc
error: unknown option `skip-locked'
usage: git rerere [--[no-]rerere-autoupdate]
--[no-]rerere-autoupdate
register clean resolutions in index
$ rungit seen rerere gc --skip-locked
Re: [PATCH v4 00/12] builtin/rerere: convert to use subcommands
Author: Junio C Hamano
Date: Mon, 16 Nov 2026 15:43
Date: Mon, 16 Nov 2026 15:43
26 lines
13628 bytes
13628 bytes
Patrick Steinhardt <ps@pks.im> writes: >> $ rungit seen rerere --skip-locked gc >> error: unknown option `skip-locked' >> usage: git rerere [--[no-]rerere-autoupdate] >> >> --[no-]rerere-autoupdate >> register clean resolutions in index >> $ rungit seen rerere gc --skip-locked > > Yes, as documented in "builtin/rerere: use `OPT_SUBCOMMAND()`. > > Unfortunately this means that we have a backwards-incompatible change > because we no longer accept the "--[no-]rerere-autoupdate" flag for all > subcommands. But this was arguably broken and misleading as we ignore > this flag for any other subcommand aynway. So we cheat a bit and simply > call it a bug that those flags were accepted in the first place. Ah, I missed that part. > But yes, the same is true for "--skip-locked". I was expecting more > review feedback on that specific part, and was a bit surprised to get > none. OK. Let's break it and have the users fix their scripts.
Re: [PATCH v4 00/12] builtin/rerere: convert to use subcommands
Author: Junio C Hamano
Date: Tue, 17 Nov 2026 01:16
Date: Tue, 17 Nov 2026 01:16
38 lines
14036 bytes
14036 bytes
Junio C Hamano <gitster@pobox.com> writes:
> Patrick Steinhardt <ps@pks.im> writes:
>
>>> $ rungit seen rerere --skip-locked gc
>>> error: unknown option `skip-locked'
>>> usage: git rerere [--[no-]rerere-autoupdate]
>>>
>>> --[no-]rerere-autoupdate
>>> register clean resolutions in index
>>> $ rungit seen rerere gc --skip-locked
>>
>> Yes, as documented in "builtin/rerere: use `OPT_SUBCOMMAND()`.
>>
>> Unfortunately this means that we have a backwards-incompatible change
>> because we no longer accept the "--[no-]rerere-autoupdate" flag for all
>> subcommands. But this was arguably broken and misleading as we ignore
>> this flag for any other subcommand aynway. So we cheat a bit and simply
>> call it a bug that those flags were accepted in the first place.
>
> Ah, I missed that part.
>
>> But yes, the same is true for "--skip-locked". I was expecting more
>> review feedback on that specific part, and was a bit surprised to get
>> none.
>
> OK. Let's break it and have the users fix their scripts.
Having said that
$ rungit seen rerere unknown
usage: too many arguments
$ rungit master rerere unknown
usage: git rerere [clear | forget <pathspec>... | diff | status | remaining | gc]
the above might be a regression that is more easily spotted by
folks.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads