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

Re: [ANNOUNCE] GIT 1.4.3

From
Junio C Hamano <junkio@cox.net>
Date
Oct 20, 2006, 23:35 UTC
Message-ID
<7v4ptylfvw.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vejt5xjt9.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
>  - git-diff paginates its output to the tty by default.  If this
>    irritates you, using LESS=RF might help.

I am considering the following to address irritation some people (including me, actually) are experiencing with this change when viewing a small (or no) diff. Any objections?

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);
Previous: Peter EriksenNext: Linus Torvalds
Message 3 of 20 in “[ANNOUNCE] GIT 1.4.3”
  1. Junio C HamanoOct 18, 2006
  2. Peter EriksenOct 20, 2006
  3. Junio C HamanoOct 20, 2006
  4. Linus TorvaldsOct 21, 2006
  5. Petr BaudisOct 21, 2006
  6. Linus TorvaldsOct 21, 2006
  7. Andreas SchwabOct 21, 2006
  8. Anders LarsenOct 22, 2006
  9. Al ViroOct 21, 2006
  10. Junio C HamanoOct 21, 2006
  11. Al ViroOct 21, 2006
  12. Rene ScharfeOct 21, 2006
  13. Nicolas PitreOct 21, 2006
  14. J. Bruce FieldsOct 23, 2006
  15. A Large Angry SCMOct 23, 2006
  16. J. Bruce FieldsOct 23, 2006
  17. Junio C HamanoOct 23, 2006
  18. Petr BaudisOct 23, 2006
  19. Jon LoeligerOct 27, 2006
  20. Junio C HamanoOct 27, 2006

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.