diff mbox series

[1/4] config: rename `dummy` parameter to `cb` in git_default_config()

Message ID 660c740fbc190274e1e124672d87abdada97ec2b.1540924800.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series mingw: prevent external PERL5LIB from interfering | expand

Commit Message

Joachim Kuebart via GitGitGadget Oct. 30, 2018, 6:40 p.m. UTC
From: Johannes Schindelin <johannes.schindelin@gmx.de>

This is the convention elsewhere (and prepares for the case where we may
need to pass callback data).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/config.c b/config.c
index 4051e3882..3687c6783 100644
--- a/config.c
+++ b/config.c
@@ -1448,13 +1448,13 @@  static int git_default_mailmap_config(const char *var, const char *value)
 	return 0;
-int git_default_config(const char *var, const char *value, void *dummy)
+int git_default_config(const char *var, const char *value, void *cb)
 	if (starts_with(var, "core."))
 		return git_default_core_config(var, value);
 	if (starts_with(var, "user."))
-		return git_ident_config(var, value, dummy);
+		return git_ident_config(var, value, cb);
 	if (starts_with(var, "i18n."))
 		return git_default_i18n_config(var, value);