Subject: Re: [GSoC PATCH v7] add -p: show user's hunk decision when selecting hunks

From: Junio C Hamano <[email-masked]>
Date: Sat, 10 Jan 2026 19:57:56 -0800

Abraham Samuel Adekunle <[email-masked]> writes:

> When a user is interactively deciding which hunks to use or skip for
> staging, unstaging, stashing etc, there is no way to know the
> decision previously chosen for a hunk when navigating through the
> previous and next hunks using K/J respectively.
>
> Improve the UI to explicitly show if a user has previously decided to
> use a hunk (by pressing 'y') or skip the hunk (by pressing 'n').
> This will improve clarity when and aid the navigation process for the
> user.
>
> Reported-by: Junio C Hamano <[email-masked]>
> Signed-off-by: Abraham Samuel Adekunle <[email-masked]>
> ---
> Changes in v7:
> ==============
> - changed hunk selection state message to reduce prompt width
> - Removed redundant `file_diff->hunk_nr` in hunk->use check
> - Made the prompt mode more readable by retaining the space before choices
> - set `hunk_use_decision` to empty string if `hunk->use == UNDECIDED` to match
>   the prompt mode.

The latest "was: X" does look short and sweet.

Let's wait for a few days to see if others have more input and then
mark the topic for 'next'.

Thanks.