mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
180f48df69
commit
08b1ea4c39
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user