Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
config: rename `dummy` parameter to `cb` in git_default_config()
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Tue, 30 Oct 2018 18:40:03 +0000
(11:40 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 31 Oct 2018 03:45:30 +0000
(12:45 +0900)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
4ede3d4
)
diff --git
a/config.c
b/config.c
index 4051e388230afb1fe96f1ffad35fcc36425d247b..3687c6783ecc12ef4d8a14bf4f4bc47c7b47a9bd 100644
(file)
--- 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);