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

Re: prune/prune-packed

From
Petr Baudis <pasky@suse.cz>
Date
Oct 23, 2006, 18:39 UTC
Message-ID
<20061023183955.GR20017@pasky.or.cz>
In-Reply-To
<7vvembzp6y.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Mon, Oct 23, 2006 at 05:27:49AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> said that...

Show 27 quoted lines
> A Large Angry SCM <gitzilla@gmail.com> writes:
> 
> > J. Bruce Fields wrote:
> >> Junio C Hamano <junkio@cox.net> writes:
> >>> 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?
> >>
> >> So for me, if I run
> >>
> >> 	less -FRS file
> >>
> >> where "file" is less than a page, I see nothing happen whatsoever.
> >>
> >> At a guess, maybe it's clearing the screen, displaying the file, the
> >> restoring, all before I see anything happen?
> >
> > Junio,
> >
> > How about reverting this change? From the reports here, is causing
> > problems on a number of different distributions.
> 
> Hmmm.  I thought I was using gnome-terminal as well, but I
> always work in screen and did not see this problem.
> 
> Sorry, but you are right and Linus is more right.  How about
> doing FRSX.

I should like that solution more since I hate the alternate screen, but I actually don't, since it should be left at the user's will whether to use the alternate screen or not, and Git shouldn't change the default on whim. Git is trying to be too smart here, and I think it's more annoying to override what the user is used to than having to by default press q.

Yes, the user can always override Git by setting own $LESS, but that means another explicit action at the user's side is required and they don't receive any further cool flags we might stick in there later. (BTW, I don't think this is right either. In Cogito, I do

	LESS="$myflags$LESS"
unless $CG_LESS is set, in which case I do
	LESS="$CG_LESS".

So people like Jens who have LESS set still get sensible behaviour from Cogito _and_ they don't loose the ability to override Cogito's less flags.)

BTW, I think not seeing output of paged commands is a major problem, this should probably warrant another bugfix release.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
Previous: Junio C HamanoNext: Jon Loeliger
Message 18 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.