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 /alias.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 'alias.c')
-rw-r--r-- | alias.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,7 +2,8 @@ static const char *alias_key; static char *alias_val; -static int alias_lookup_cb(const char *k, const char *v) + +static int alias_lookup_cb(const char *k, const char *v, void *cb) { if (!prefixcmp(k, "alias.") && !strcmp(k+6, alias_key)) { if (!v) @@ -17,6 +18,6 @@ char *alias_lookup(const char *alias) { alias_key = alias; alias_val = NULL; - git_config(alias_lookup_cb); + git_config(alias_lookup_cb, NULL); return alias_val; } |