summaryrefslogtreecommitdiff
path: root/add-interactive.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-01-14 18:43:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-15 20:06:16 (GMT)
commit08b1ea4c39b08b76fe2d1240ccbf6077ef19226a (patch)
tree5b5594a85ade0187b7d8cf7a115f86a129ae9506 /add-interactive.h
parent180f48df69d8e7a1a413d7c11907ecf975f09cf7 (diff)
downloadgit-08b1ea4c39b08b76fe2d1240ccbf6077ef19226a.zip
git-08b1ea4c39b08b76fe2d1240ccbf6077ef19226a.tar.gz
git-08b1ea4c39b08b76fe2d1240ccbf6077ef19226a.tar.bz2
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>
Diffstat (limited to 'add-interactive.h')
-rw-r--r--add-interactive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/add-interactive.h b/add-interactive.h
index 46c7386..923efaf 100644
--- a/add-interactive.h
+++ b/add-interactive.h
@@ -16,7 +16,7 @@ struct add_i_state {
char file_old_color[COLOR_MAXLEN];
char file_new_color[COLOR_MAXLEN];
- char *interactive_diff_filter;
+ char *interactive_diff_filter, *interactive_diff_algorithm;
};
void init_add_i_state(struct add_i_state *s, struct repository *r);