mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
add-patch: document that option J rolls over
The variable "permitted" is not reset after moving to a different hunk, so it only accumulates permission and doesn't necessarily reflect those of the current hunk. This may be a bug, but is actually useful with the option J, which can be used at the last hunk to roll over to the first hunk. Make this particular behavior official. Also adjust the error message, as it will only be shown if there's just a single hunk. Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
2c3cc43f96
commit
c309b65a7c
@@ -343,7 +343,7 @@ patch::
|
||||
g - select a hunk to go to
|
||||
/ - search for a hunk matching the given regex
|
||||
j - go to the next undecided hunk
|
||||
J - go to the next hunk
|
||||
J - go to the next hunk, roll over at the bottom
|
||||
k - go to the previous undecided hunk
|
||||
K - go to the previous hunk
|
||||
s - split the current hunk into smaller hunks
|
||||
|
||||
Reference in New Issue
Block a user