Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add -p (built-in): imitate
xdl_format_hunk_hdr()
generating hunk he…
…aders 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>
- Loading branch information