Re: [PATCH v3 2/3] add-patch: Allow interfile navigation when selecting hunks
- From
Samuel Abraham <abrahamadekunle50@gmail.com>
- Date
- Feb 12, 2026, 10:32 UTC
- Message-ID
- <CADYq+fa81Uki0ZVta80VO=-UG-f+Z8GAyzom-FLNXULartwwXA@mail.gmail.com>
- In-Reply-To
- <xmqqikc9ekzz.fsf@gitster.g>
On Fri, Feb 6, 2026 at 8:21 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 21 quoted lines
>
> Abraham Samuel Adekunle <abrahamadekunle50@gmail.com> writes:
>
> > @@ -1566,11 +1589,14 @@ static int patch_update_file(struct add_p_state *s,
> > : 1));
> > printf(_(s->mode->prompt_mode[prompt_mode_type]),
> > s->buf.buf);
> > + if (s->s.no_auto_advance && all_decided)
> > + printf(_("\n%s All hunks decided. What now? "),
> > + s->s.prompt_color);
>
> This gives an ordinary prompt for the hunk and then another one
> after it if we notice everything has been decided. I am wondering
> if it wants to be more like
>
> if (!s->auto_advance && all_decided)
> say What now?
> else
> ask the usual
>
> ?Hello Junio Please just a small curiosity.
If I do it this way, the user will not be able to see the options available once they have decided on all hunks and want to rework the file. The options for a hunk will not be visible if they navigate with say K or J and want to change decisions on a hunk. They will always be greeted with What now? without the available options.