diff options
| author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2018-02-13 10:32:40 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 13:01:56 -0800 |
| commit | 88f6ffc1c256ef241cbed33dabbdd23c1a7ac6a9 (patch) | |
| tree | 429a00b5acdcffdaa341133c97c55a88ac0b6815 /builtin/diff.c | |
| parent | 01a6966021a50dc7aff76c0f951bbdd6e1bdd444 (diff) | |
add -p: only bind search key if there's more than one hunk
If there is only a single hunk then disable searching as there is
nothing to search for. Also print a specific error message if the user
tries to search with '/' when there's only a single hunk rather than
just listing the key bindings.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff.c')
0 files changed, 0 insertions, 0 deletions
