From 301e20da208d23e9ea03d58e1488973c6f1f939a Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Tue, 21 Oct 2025 20:02:53 +0200 Subject: add-patch: fully document option P MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show option P in the prompt and explain it properly on a dedicated line in online help and documentation. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- add-patch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'add-patch.c') diff --git a/add-patch.c b/add-patch.c index 45839ceac5..737fafdefc 100644 --- a/add-patch.c +++ b/add-patch.c @@ -1405,7 +1405,8 @@ N_("j - go to the next undecided hunk, roll over at the bottom\n" "/ - search for a hunk matching the given regex\n" "s - split the current hunk into smaller hunks\n" "e - manually edit the current hunk\n" - "p - print the current hunk, 'P' to use the pager\n" + "p - print the current hunk\n" + "P - print the current hunk using the pager\n" "? - print help\n"); static size_t dec_mod(size_t a, size_t m) @@ -1536,7 +1537,7 @@ static int patch_update_file(struct add_p_state *s, permitted |= ALLOW_EDIT; strbuf_addstr(&s->buf, ",e"); } - strbuf_addstr(&s->buf, ",p"); + strbuf_addstr(&s->buf, ",p,P"); } if (file_diff->deleted) prompt_mode_type = PROMPT_DELETION; -- cgit v1.3