summaryrefslogtreecommitdiff
path: root/add-interactive.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2019-12-13 08:07:50 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-13 12:37:13 -0800
commite3bd11b4ebed7dd6fd0cccc6765be64f76cc5766 (patch)
tree8dc4abbe6ef64126cfc8caefd3298349a706b35d /add-interactive.c
parentbuilt-in add -i: wire up the new C code for the `patch` command (diff)
downloadtgif-e3bd11b4ebed7dd6fd0cccc6765be64f76cc5766.tar.xz
built-in add -p: show colored hunks by default
Just like the Perl version, we now generate two diffs if `color.diff` is set: one with and one without color. Then we parse them in parallel and record which hunks start at which offsets in both. Note that this is a (slight) deviation from the way the Perl version did it: we are no longer reading the output of `diff-files` line by line (which is more natural for Perl than for C), but in one go, and parse everything later, so we might just as well do it in synchrony. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'add-interactive.c')
0 files changed, 0 insertions, 0 deletions