git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] pager: default to LESS=FRX not LESS=FRSX

From
EREygene Ryabinkin <rea-git@codelabs.ru>
Date
Mar 26, 2007, 07:35 UTC
Message-ID
<20070326073502.GD44578@codelabs.ru>

Remove unnecessary '-S' option that enabled less to chop long lines. It used to provide some confusion at least for the 'git diff': "Where are my long lines? Are they missed from the patch?".

Signed-off-by: Eygene Ryabinkin <rea-git@codelabs.ru>
---
 pager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pager.c b/pager.c
index 5f280ab..2dca00e 100644
--- a/pager.c
+++ b/pager.c
@@ -62,7 +62,7 @@ void setup_pager(void)
 	close(fd[0]);
 	close(fd[1]);
 
-	setenv("LESS", "FRSX", 0);
+	setenv("LESS", "FRX", 0);
 	run_pager(pager);
 	die("unable to execute pager '%s'", pager);
 	exit(255);
-- 
1.5.0.3-dirty
Next: Junio C Hamano
Message 1 of 11 in “pager: default to LESS=FRX not LESS=FRSX”
  1. pager: default to LESS=FRX not LESS=FRSXEygene Ryabinkin, Mar 26, 2007
  2. Junio C HamanoMar 26, 2007
  3. Shawn O. PearceMar 26, 2007
  4. Junio C HamanoMar 26, 2007
  5. Eygene RyabinkinMar 26, 2007
  6. Junio C HamanoMar 26, 2007
  7. Jeff KingMar 26, 2007
  8. Eygene RyabinkinMar 27, 2007
  9. Bill LearMar 26, 2007
  10. Junio C HamanoMar 26, 2007
  11. Eygene RyabinkinMar 27, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.