Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e252789

Browse files
Merge pull request #108 from alc0der/fix/respect-git-no-pager
Respect git --no-pager option by using GIT_PAGER variable
2 parents 69e4155 + a1f4f33 commit e252789

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

‎git-issue.1‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ that element and can be used to derive its date and author.
261261
.SH ENVIRONMENT
262262
The \fCVISUAL\fP environment variable is used for determining the user's
263263
editor.
264-
The \fCPAGER\fP environment variable is used for determining the program
265-
to use to display long lists of results.
264+
The \fCGIT_PAGER\fP environment variable (set by git when using --no-pager)
265+
takes precedence over \fCPAGER\fP for determining the program to use to
266+
display long lists of results.
267+
If \fCGIT_PAGER\fP is not set, the \fCPAGER\fP environment variable is used.
266268

267269
.SH FILES
268270
.\" Auto-generated content from README.md; do not edit this section

‎git-issue.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ edit()
207207
# Pipe input through the user's pager
208208
pager()
209209
{
210-
${PAGER:-more}
210+
${GIT_PAGER:-${PAGER:-more}}
211211
}
212212

213213
# init: Initialize a new issue repository {{{1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /