4 * This is split up from the rest of git so that we might do
5 * something different on Windows, for example.
8 static void run_pager(const char *pager
)
10 execlp(pager
, pager
, NULL
);
13 void setup_pager(void)
17 const char *pager
= getenv("PAGER");
23 else if (!*pager
|| !strcmp(pager
, "cat"))
35 /* return in the child */
43 /* The original process turns into the PAGER */
48 setenv("LESS", "-S", 0);