]> Kevux Git Server - rit/commit
add -p: show user's hunk decision when selecting hunks
authorAbraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Thu, 8 Jan 2026 15:07:04 +0000 (16:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jan 2026 14:12:31 +0000 (06:12 -0800)
commit8cafc305e22a59efb92472d4132616e24d3184c6
tree5b38ee131b2ab5916d610db3098284a16192e673
parent68cb7f9e92a5d8e9824f5b52ac3d0a9d8f653dbe
add -p: show user's hunk decision when selecting hunks

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 <gitster@pobox.com>
Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-patch.c
t/t3701-add-interactive.sh