From: Junio C Hamano Date: Tue, 23 Feb 2016 21:01:50 GMT Subject: Re: [PATCH 5/5] diff: activate diff.renames by default Message-ID: In-Reply-To: <1456249498-3232-6-git-send-email-Matthieu.Moy@imag.fr> Matthieu Moy writes: > diff --git a/builtin/log.c b/builtin/log.c > index 7f96c64..6e34df3 100644 > --- a/builtin/log.c > +++ b/builtin/log.c > @@ -103,6 +103,7 @@ static int log_line_range_callback(const struct option *option, const char *arg, > static void init_log_defaults() > { > init_grep_defaults(); > + git_diff_ui_default_config(); > } Why isn't the new function called init_diff_ui_defaults()? > diff --git a/diff.c b/diff.c > index 2136b69..d5db898 100644 > --- a/diff.c > +++ b/diff.c > @@ -168,6 +168,11 @@ long parse_algorithm_value(const char *value) > * never be affected by the setting of diff.renames > * the user happens to have in the configuration file. > */ > +void git_diff_ui_default_config() s/()/(void)/; same for the declaration in the header file.