Skip to content

Commit ca4eed7

Browse files
newrengitster
authored andcommitted
pager.h: move declarations for pager.c functions from cache.h
Signed-off-by: Elijah Newren <[email protected]> Acked-by: Calvin Wan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0e8d4b9 commit ca4eed7

23 files changed

+39
-14
lines changed

builtin/am.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "apply.h"
4141
#include "string-list.h"
4242
#include "packfile.h"
43+
#include "pager.h"
4344
#include "repository.h"
4445
#include "pretty.h"
4546
#include "wrapper.h"

builtin/blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "progress.h"
3131
#include "object-name.h"
3232
#include "object-store.h"
33+
#include "pager.h"
3334
#include "blame.h"
3435
#include "refs.h"
3536
#include "setup.h"

builtin/fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "strvec.h"
2929
#include "utf8.h"
3030
#include "packfile.h"
31+
#include "pager.h"
3132
#include "list-objects-filter-options.h"
3233
#include "commit-reach.h"
3334
#include "branch.h"

builtin/grep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "object-name.h"
3131
#include "object-store.h"
3232
#include "packfile.h"
33+
#include "pager.h"
3334
#include "write-or-die.h"
3435

3536
static const char *grep_prefix;

builtin/help.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "builtin.h"
77
#include "exec-cmd.h"
88
#include "gettext.h"
9+
#include "pager.h"
910
#include "parse-options.h"
1011
#include "run-command.h"
1112
#include "config-list.h"

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "object-file.h"
1616
#include "object-name.h"
1717
#include "object-store.h"
18+
#include "pager.h"
1819
#include "color.h"
1920
#include "commit.h"
2021
#include "diff.h"

builtin/name-rev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "tag.h"
1010
#include "refs.h"
1111
#include "object-name.h"
12+
#include "pager.h"
1213
#include "parse-options.h"
1314
#include "prio-queue.h"
1415
#include "hash-lookup.h"

builtin/var.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "config.h"
88
#include "editor.h"
99
#include "ident.h"
10+
#include "pager.h"
1011
#include "refs.h"
1112

1213
static const char var_usage[] = "git var (-l | <variable>)";

cache.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ struct cache_entry {
145145

146146
/* Forward structure decls */
147147
struct pathspec;
148-
struct child_process;
149148
struct tree;
150149

151150
/*
@@ -621,8 +620,6 @@ int df_name_compare(const char *name1, size_t len1, int mode1,
621620
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
622621
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);
623622

624-
const char *git_pager(int stdout_is_tty);
625-
626623
struct cache_def {
627624
struct strbuf path;
628625
int flags;
@@ -671,16 +668,6 @@ int copy_fd(int ifd, int ofd);
671668
int copy_file(const char *dst, const char *src, int mode);
672669
int copy_file_with_time(const char *dst, const char *src, int mode);
673670

674-
/* pager.c */
675-
void setup_pager(void);
676-
int pager_in_use(void);
677-
extern int pager_use_color;
678-
int term_columns(void);
679-
void term_clear_line(void);
680-
int decimal_width(uintmax_t);
681-
int check_pager_config(const char *cmd);
682-
void prepare_pager_args(struct child_process *, const char *pager);
683-
684671
/* base85 */
685672
int decode_85(char *dst, const char *line, int linelen);
686673
void encode_85(char *buf, const unsigned char *data, int bytes);

color.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "editor.h"
55
#include "gettext.h"
66
#include "hex.h"
7+
#include "pager.h"
78

89
static int git_use_color_default = GIT_COLOR_AUTO;
910
int color_stdout_is_tty = -1;

0 commit comments

Comments
 (0)