config: add git_config_get_expiry() from gc.c