summaryrefslogtreecommitdiff
path: root/pager.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-10-20 23:37:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-20 23:37:49 (GMT)
commit96a035d1db9082d244867033020d0ceb571cf94e (patch)
treeec86274f079ff52f2f8947de406e7d9762f15e3d /pager.c
parentb507b465f7831612b9d9fc643e3e5218b64e5bfa (diff)
downloadgit-96a035d1db9082d244867033020d0ceb571cf94e.zip
git-96a035d1db9082d244867033020d0ceb571cf94e.tar.gz
git-96a035d1db9082d244867033020d0ceb571cf94e.tar.bz2
pager: default to LESS=FRS
Recent change to paginate "git diff" by default is often irritating when you do not have any change (or very small change) in your working tree. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pager.c')
-rw-r--r--pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pager.c b/pager.c
index dcb398d..8bd33a1 100644
--- a/pager.c
+++ b/pager.c
@@ -50,7 +50,7 @@ void setup_pager(void)
close(fd[0]);
close(fd[1]);
- setenv("LESS", "-RS", 0);
+ setenv("LESS", "FRS", 0);
run_pager(pager);
die("unable to execute pager '%s'", pager);
exit(255);