git/builtin/help.c


/*
 * Builtin help command
 */
#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
#include "exec-cmd.h"
#include "gettext.h"
#include "pager.h"
#include "parse-options.h"
#include "path.h"
#include "run-command.h"
#include "config-list.h"
#include "help.h"
#include "alias.h"
#include "setup.h"

#ifndef DEFAULT_HELP_FORMAT
#define DEFAULT_HELP_FORMAT
#endif

static struct man_viewer_list {} *man_viewer_list;

static struct man_viewer_info_list {} *man_viewer_info_list;

enum help_format {};

enum show_config_type {};

static enum help_action {} cmd_mode;

static char *html_path;
static int verbose =;
static enum help_format help_format =;
static int exclude_guides;
static int show_external_commands =;
static int show_aliases =;
static struct option builtin_help_options[] =;

static const char * const builtin_help_usage[] =;

struct slot_expansion {};

static void list_config_help(enum show_config_type type)
{}

static enum help_format parse_help_format(const char *format)
{}

static const char *get_man_viewer_info(const char *name)
{}

static int check_emacsclient_version(void)
{}

static void exec_woman_emacs(const char *path, const char *page)
{}

static void exec_man_konqueror(const char *path, const char *page)
{}

static void exec_man_man(const char *path, const char *page)
{}

static void exec_man_cmd(const char *cmd, const char *page)
{}

static void add_man_viewer(const char *name)
{}

static int supported_man_viewer(const char *name, size_t len)
{}

static void do_add_man_viewer_info(const char *name,
				   size_t len,
				   const char *value)
{}

static int add_man_viewer_path(const char *name,
			       size_t len,
			       const char *value)
{}

static int add_man_viewer_cmd(const char *name,
			      size_t len,
			      const char *value)
{}

static int add_man_viewer_info(const char *var, const char *value)
{}

static int git_help_config(const char *var, const char *value,
			   const struct config_context *ctx, void *cb)
{}

static struct cmdnames main_cmds, other_cmds;

static int is_git_command(const char *s)
{}

static const char *cmd_to_page(const char *git_cmd)
{}

static void setup_man_path(void)
{}

static void exec_viewer(const char *name, const char *page)
{}

static void show_man_page(const char *page)
{}

static void show_info_page(const char *page)
{}

static void get_html_page_path(struct strbuf *page_path, const char *page)
{}

static void open_html(const char *path)
{}

static void show_html_page(const char *page)
{}

static const char *check_git_cmd(const char* cmd)
{}

static void no_help_format(const char *opt_mode, enum help_format fmt)
{}

static void opt_mode_usage(int argc, const char *opt_mode,
			   enum help_format fmt)
{}

int cmd_help(int argc,
	     const char **argv,
	     const char *prefix,
	     struct repository *repo UNUSED)
{}