3 static const char *alias_key;
4 static char *alias_val;
6 static int alias_lookup_cb(const char *k, const char *v, void *cb)
8 if (!prefixcmp(k, "alias.") && !strcmp(k+6, alias_key)) {
10 return config_error_nonbool(k);
11 alias_val = xstrdup(v);
17 char *alias_lookup(const char *alias)
21 git_config(alias_lookup_cb, NULL);