Re: [PATCH v3 1/6] alias.c: replace `git_config()` with `git_config_get_string()`
Tanay Abhra <tanayabh@gmail.com> writes:
Show 22 quoted lines
> --- a/alias.c
> +++ b/alias.c
> @@ -1,26 +1,13 @@
> #include "cache.h"
>
> -static const char *alias_key;
> -static char *alias_val;
> -
> -static int alias_lookup_cb(const char *k, const char *v, void *cb)
> -{
> - const char *name;
> - if (skip_prefix(k, "alias.", &name) && !strcmp(name, alias_key)) {
> - if (!v)
> - return config_error_nonbool(k);
> - alias_val = xstrdup(v);
> - return 0;
> - }
> - return 0;
> -}
> -
> -char *alias_lookup(const char *alias)
> +char *alias_lookup(const char* alias)Style: keep the * stuck to alias.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/