git/pager.c

#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 =;

/* Is the value coming back from term_columns() just a guess? */
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)
{}

/*
 * Return cached value (if set) or $COLUMNS environment variable (if
 * set and positive) or ioctl(1, TIOCGWINSZ).ws_col (if positive),
 * and default to 80 if all else fails.
 */
int term_columns(void)
{}

/*
 * Clear the entire line, leave cursor in first column.
 */
void term_clear_line(void)
{}

/*
 * How many columns do we need to show this number in decimal?
 */
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)
{}

/* returns 0 for "no pager", 1 for "use pager", and -1 for "not specified" */
int check_pager_config(const char *cmd)
{}