#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "config.h"
#include "editor.h"
#include "pager.h"
#include "run-command.h"
#include "sigchain.h"
#include "alias.h"
int pager_use_color = …;
#ifndef DEFAULT_PAGER
#define DEFAULT_PAGER …
#endif
static struct child_process pager_process;
static char *pager_program;
static int old_fd1 = …, old_fd2 = …;
static int term_columns_guessed;
static void close_pager_fds(void)
{ … }
static void finish_pager(void)
{ … }
static void wait_for_pager_atexit(void)
{ … }
void wait_for_pager(void)
{ … }
static void wait_for_pager_signal(int signo)
{ … }
static int core_pager_config(const char *var, const char *value,
const struct config_context *ctx UNUSED,
void *data UNUSED)
{ … }
const char *git_pager(int stdout_is_tty)
{ … }
static void setup_pager_env(struct strvec *env)
{ … }
void prepare_pager_args(struct child_process *pager_process, const char *pager)
{ … }
void setup_pager(void)
{ … }
int pager_in_use(void)
{ … }
int term_columns(void)
{ … }
void term_clear_line(void)
{ … }
int decimal_width(uintmax_t number)
{ … }
struct pager_command_config_data { … };
static int pager_command_config(const char *var, const char *value,
const struct config_context *ctx UNUSED,
void *vdata)
{ … }
int check_pager_config(const char *cmd)
{ … }