diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-25 14:25:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-25 14:25:02 -0700 |
commit | 9bd81e4249a419f9cde8fd68e033e263533f4914 (patch) | |
tree | 5a4c77cc648dc720e40c76e83a489ab40e70e187 /builtin-branch.c | |
parent | 450c5aed06ecf60084f993f688b549ffa377b64e (diff) | |
parent | ef90d6d4208a5130185b04f06e5f90a5f9959fe3 (diff) | |
download | git-9bd81e4249a419f9cde8fd68e033e263533f4914.tar.gz |
Merge branch 'js/config-cb'v1.5.6-rc0
* js/config-cb:
Provide git_config with a callback-data parameter
Conflicts:
builtin-add.c
builtin-cat-file.c
Diffstat (limited to 'builtin-branch.c')
-rw-r--r-- | builtin-branch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin-branch.c b/builtin-branch.c index 19c508a608..d279702ba9 100644 --- a/builtin-branch.c +++ b/builtin-branch.c @@ -63,7 +63,7 @@ static int parse_branch_color_slot(const char *var, int ofs) die("bad config variable '%s'", var); } -static int git_branch_config(const char *var, const char *value) +static int git_branch_config(const char *var, const char *value, void *cb) { if (!strcmp(var, "color.branch")) { branch_use_color = git_config_colorbool(var, value, -1); @@ -76,7 +76,7 @@ static int git_branch_config(const char *var, const char *value) color_parse(value, var, branch_colors[slot]); return 0; } - return git_color_default_config(var, value); + return git_color_default_config(var, value, cb); } static const char *branch_get_color(enum color_branch ix) @@ -461,7 +461,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix) OPT_END(), }; - git_config(git_branch_config); + git_config(git_branch_config, NULL); if (branch_use_color == -1) branch_use_color = git_use_color_default; |