]> git.ipfire.org Git - thirdparty/git.git/commit - add-patch.c
built-in add -p: handle diff.algorithm
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 14 Jan 2020 18:43:46 +0000 (18:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2020 20:06:16 +0000 (12:06 -0800)
commit08b1ea4c39b08b76fe2d1240ccbf6077ef19226a
tree5b5594a85ade0187b7d8cf7a115f86a129ae9506
parent180f48df69d8e7a1a413d7c11907ecf975f09cf7
built-in add -p: handle diff.algorithm

The Perl version of `git add -p` reads the config setting
`diff.algorithm` and if set, uses it to generate the diff using the
specified algorithm.

This patch ports that functionality to the C version.

Note: just like `git-add--interactive.perl`, we do _not_ respect this
config setting in `git add -i`'s `diff` command, but _only_ in the
`patch` command.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-interactive.c
add-interactive.h
add-patch.c