]> git.ipfire.org Git - thirdparty/git.git/commit
built-in add -p: only show the applicable parts of the help text
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 13 Dec 2019 08:08:05 +0000 (08:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Dec 2019 20:37:14 +0000 (12:37 -0800)
commit54d9d9b2eebe1c8f8b54626f98a5e1414ce766ba
tree0c4f2daf92ba6b0f12fc4bca3788ec6484022a31
parentade246efed509a68348901e7a085ceb55915bfea
built-in add -p: only show the applicable parts of the help text

When displaying the only hunk in a file's diff, the prompt already
excludes the commands to navigate to the previous/next hunk.

Let's also let the `?` command show only the help lines corresponding to
the commands that are displayed in the prompt.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-patch.c