3 static const char *alias_key;
4 static char *alias_val;
5 static int alias_lookup_cb(const char *k, const char *v)
7 if (!prefixcmp(k, "alias.") && !strcmp(k+6, alias_key)) {
9 return config_error_nonbool(k);
10 alias_val = xstrdup(v);
16 char *alias_lookup(const char *alias)
20 git_config(alias_lookup_cb);