aboutsummaryrefslogtreecommitdiffstats
path: root/pager.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-06-13 18:45:44 +0200
committerJunio C Hamano <junkio@cox.net>2006-06-17 17:08:16 -0700
commitcd112cef999c59a7ca2a96c37b197d303a355924 (patch)
treea992fcbbfa44ac11be583e45c0cad8e7ea658f2a /pager.c
parentae448e3854d8b6e7e37aa88fa3917f5dd97f3210 (diff)
downloadgit-cd112cef999c59a7ca2a96c37b197d303a355924.tar.gz
diff options: add --color
This patch is a slightly adjusted version of Junio's patch: http://www.gelato.unsw.edu.au/archives/git/0604/19354.html However, instead of using a config variable, this patch makes it available as a diff option. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> 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 9a30939016..2d186e8bde 100644
--- a/pager.c
+++ b/pager.c
@@ -46,7 +46,7 @@ void setup_pager(void)
close(fd[0]);
close(fd[1]);
- setenv("LESS", "-S", 0);
+ setenv("LESS", "-RS", 0);
run_pager(pager);
die("unable to execute pager '%s'", pager);
exit(255);