#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "attr.h"
#include "config.h"
#include "editor.h"
#include "ident.h"
#include "pager.h"
#include "refs.h"
#include "path.h"
#include "strbuf.h"
#include "run-command.h"
static const char var_usage[] = …;
static char *committer(int ident_flag)
{ … }
static char *author(int ident_flag)
{ … }
static char *editor(int ident_flag UNUSED)
{ … }
static char *sequence_editor(int ident_flag UNUSED)
{ … }
static char *pager(int ident_flag UNUSED)
{ … }
static char *default_branch(int ident_flag UNUSED)
{ … }
static char *shell_path(int ident_flag UNUSED)
{ … }
static char *git_attr_val_system(int ident_flag UNUSED)
{ … }
static char *git_attr_val_global(int ident_flag UNUSED)
{ … }
static char *git_config_val_system(int ident_flag UNUSED)
{ … }
static char *git_config_val_global(int ident_flag UNUSED)
{ … }
struct git_var { … };
static struct git_var git_vars[] = …;
static void list_vars(void)
{ … }
static const struct git_var *get_git_var(const char *var)
{ … }
static int show_config(const char *var, const char *value,
const struct config_context *ctx, void *cb)
{ … }
int cmd_var(int argc,
const char **argv,
const char *prefix UNUSED,
struct repository *repo UNUSED)
{ … }