diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-11-11 12:28:16 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-11 09:07:52 -0800 |
commit | decc9ee4eaf2c33c28e2958439d276904a2ce279 (patch) | |
tree | 3a898371134bfb5cdd82e047c47cfc0815be3c9d /contrib/emacs | |
parent | add -i (built-in): send error messages to stderr (diff) | |
download | tgif-decc9ee4eaf2c33c28e2958439d276904a2ce279.tar.xz |
add -p (built-in): imitate `xdl_format_hunk_hdr()` generating hunk headers
In libxdiff, imitating GNU diff, the hunk headers only show the line
count if it is different from 1. When splitting hunks, the Perl version
of `git add -p` already imitates this. Let's do the same in the built-in
version of said command.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/emacs')
0 files changed, 0 insertions, 0 deletions