Skip to content

Commit 0054eea

Browse files
committed
cache.h: split off pager.c declerations into a new pager.h
1 parent e7d5b51 commit 0054eea

21 files changed

+30
-10
lines changed

builtin/am.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "string-list.h"
3535
#include "packfile.h"
3636
#include "repository.h"
37+
#include "pager.h"
3738

3839
/**
3940
* Returns the length of the first line of msg.

builtin/blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "blame.h"
2929
#include "refs.h"
3030
#include "tag.h"
31+
#include "pager.h"
3132

3233
static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>");
3334

builtin/fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "promisor-remote.h"
2929
#include "commit-graph.h"
3030
#include "shallow.h"
31+
#include "pager.h"
3132

3233
#define FORCED_UPDATES_DELAY_WARNING_IN_MS (10 * 1000)
3334

builtin/grep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "submodule-config.h"
2626
#include "object-store.h"
2727
#include "packfile.h"
28+
#include "pager.h"
2829

2930
static char const * const grep_usage[] = {
3031
N_("git grep [<options>] [-e] <pattern> [<rev>...] [[--] <path>...]"),

builtin/help.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "config-list.h"
1111
#include "help.h"
1212
#include "alias.h"
13+
#include "pager.h"
1314

1415
#ifndef DEFAULT_HELP_FORMAT
1516
#define DEFAULT_HELP_FORMAT "man"

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "repository.h"
3636
#include "commit-reach.h"
3737
#include "range-diff.h"
38+
#include "pager.h"
3839

3940
#define MAIL_DEFAULT_WRAP 72
4041
#define COVER_FROM_AUTO_MAX_SUBJECT_LEN 100

builtin/name-rev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "prio-queue.h"
1010
#include "hash-lookup.h"
1111
#include "commit-slab.h"
12+
#include "pager.h"
1213

1314
/*
1415
* One day. See the 'name a rev shortly after epoch' test in t6120 when

cache.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,16 +1765,6 @@ void write_file_buf(const char *path, const char *buf, size_t len);
17651765
__attribute__((format (printf, 2, 3)))
17661766
void write_file(const char *path, const char *fmt, ...);
17671767

1768-
/* pager.c */
1769-
void setup_pager(void);
1770-
int pager_in_use(void);
1771-
extern int pager_use_color;
1772-
int term_columns(void);
1773-
void term_clear_line(void);
1774-
int decimal_width(uintmax_t);
1775-
int check_pager_config(const char *cmd);
1776-
void prepare_pager_args(struct child_process *, const char *pager);
1777-
17781768
extern const char *editor_program;
17791769
extern const char *askpass_program;
17801770
extern const char *excludes_file;

color.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "cache.h"
22
#include "config.h"
33
#include "color.h"
4+
#include "pager.h"
45

56
static int git_use_color_default = GIT_COLOR_AUTO;
67
int color_stdout_is_tty = -1;

column.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "parse-options.h"
66
#include "run-command.h"
77
#include "utf8.h"
8+
#include "pager.h"
89

910
#define XY2LINEAR(d, x, y) (COL_LAYOUT((d)->colopts) == COL_COLUMN ? \
1011
(x) * (d)->rows + (y) : \

0 commit comments

Comments
 (0)