Re: [PATCH] add -p: introduce 'w' command to view hunk with --word-diff
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 12, 2026, 00:04 UTC
- Message-ID
- <xmqqo6ilqyrp.fsf@gitster.g>
- In-Reply-To
- <CALnO6CCR9bQ71LR_buEAzX4UcR4sERnaVLc6_19sJUfXyi-HPA@mail.gmail.com>
"D. Ben Knoble" <ben.knoble@gmail.com> writes:
Show 8 quoted lines
>> > :show <opts> > ... > - ":" is an exception to single-key mode and always allows more text > to compose a longer-form "command". The first command could be "print" > which takes options of this kind. > > Since ":" would be new, exempting it from single-key mode shouldn't be > too jarring I guess.
OK. And we can use ':blah' to rarely used actions and give them descriptive names. Makes sense. word-diff sounds like a good candidate but it is not immediately obvious to me if machinery to set up the "colon is special and handles longhand commands with possible arguments" is worth doing.