path: root/diff.h
diff options
authorMatthieu Moy <>2016-02-25 08:59:21 (GMT)
committerJunio C Hamano <>2016-02-25 19:31:02 (GMT)
commit5404c116aa921d7e2f9408e103c80b7801735d08 (patch)
tree2a6e3a05b37e19e76242f0fdf54eba73879377f9 /diff.h
parent9501d191adca307d6fbe3f2ab111fa20414dd893 (diff)
diff: activate diff.renames by default
Rename detection is a very convenient feature, and new users shouldn't have to dig in the documentation to benefit from it. Potential objections to activating rename detection are that it sometimes fail, and it is sometimes slow. But rename detection is already activated by default in several cases like "git status" and "git merge", so activating diff.renames does not fundamentally change the situation. When the rename detection fails, it now fails consistently between "git diff" and "git status". This setting does not affect plumbing commands, hence well-written scripts will not be affected. Signed-off-by: Matthieu Moy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'diff.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index 70b2d70..0a3ce86 100644
--- a/diff.h
+++ b/diff.h
@@ -266,6 +266,7 @@ extern int parse_long_opt(const char *opt, const char **argv,
const char **optarg);
extern int git_diff_basic_config(const char *var, const char *value, void *cb);
+extern void init_diff_ui_defaults(void);
extern int git_diff_ui_config(const char *var, const char *value, void *cb);
extern void diff_setup(struct diff_options *);
extern int diff_opt_parse(struct diff_options *, const char **, int, const char *);