summaryrefslogtreecommitdiff
path: root/compat/basename.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2020-11-11 12:28:16 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-11 09:07:52 -0800
commitdecc9ee4eaf2c33c28e2958439d276904a2ce279 (patch)
tree3a898371134bfb5cdd82e047c47cfc0815be3c9d /compat/basename.c
parentadd -i (built-in): send error messages to stderr (diff)
downloadtgif-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 'compat/basename.c')
0 files changed, 0 insertions, 0 deletions