Skip to content

Commit

Permalink
config: rename dummy parameter to cb in git_default_config()
Browse files Browse the repository at this point in the history
This is the convention elsewhere (and prepares for the case where we may
need to pass callback data).

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
dscho authored and gitster committed Oct 31, 2018
1 parent 4ede3d4 commit 409670f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 409670f

Please sign in to comment.