{"thread":{"id":"15811","subject":"Git pager woes","startedAt":"2008-10-07T13:43:12Z","lastAt":"2008-10-07T14:30:41Z","messageCount":4,"participants":["J.R. Mauro","Andreas Ericsson","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"92525","messageId":"3aaafc130810070643m352ea2ufa1069dc149f0d9e@mail.gmail.com","threadId":"15811","inReplyTo":null,"subject":"Git pager woes","fromName":"J.R. Mauro","fromEmail":"jrm8005@gmail.com","sentAt":"2008-10-07T13:43:12Z","receivedAt":"2008-10-07T13:43:12Z","isPatch":false,"sender":{"key":"jrm8005@gmail.com","avatar":null},"body":"Git doesn't set special options to it's pager command if the LESS\nenvironment variable is set. I noticed when I started using Gentoo\nthat git was putting all output into a pager even if it were less than\none page, which it didn't do under Ubuntu. A fellow Gentoo user\nconfirms this; apparently Gentoo's defaults set LESS, but without a\n-F.\n\nShould git always tack on a -F when it invokes less, or should this be\nput on the user to look up what to do? Or should I go complain to the\nGentoo folks?\n"},{"id":"92526","messageId":"48EB70C4.1070001@op5.se","threadId":"15811","inReplyTo":"3aaafc130810070643m352ea2ufa1069dc149f0d9e@mail.gmail.com","subject":"Re: Git pager woes","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-10-07T14:23:00Z","receivedAt":"2008-10-07T14:23:00Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"J.R. Mauro wrote:\n> Git doesn't set special options to it's pager command if the LESS\n> environment variable is set. I noticed when I started using Gentoo\n> that git was putting all output into a pager even if it were less than\n> one page, which it didn't do under Ubuntu. A fellow Gentoo user\n> confirms this; apparently Gentoo's defaults set LESS, but without a\n> -F.\n> \n> Should git always tack on a -F when it invokes less, or should this be\n> put on the user to look up what to do? Or should I go complain to the\n> Gentoo folks?\n\nGo complain to Gentoo. If the user has set it explicitly (even if that\nhappens behind the user's back), we absolutely mustn't fiddle with it.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"92527","messageId":"3aaafc130810070724q2621a90ey2435fec3ef6e15a0@mail.gmail.com","threadId":"15811","inReplyTo":"48EB70C4.1070001@op5.se","subject":"Re: Git pager woes","fromName":"J.R. Mauro","fromEmail":"jrm8005@gmail.com","sentAt":"2008-10-07T14:24:13Z","receivedAt":"2008-10-07T14:24:13Z","isPatch":false,"sender":{"key":"jrm8005@gmail.com","avatar":null},"body":"Ok. Thanks.\n"},{"id":"92532","messageId":"vpqbpxwxysu.fsf@bauges.imag.fr","threadId":"15811","inReplyTo":"3aaafc130810070643m352ea2ufa1069dc149f0d9e@mail.gmail.com","subject":"Re: Git pager woes","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2008-10-07T14:30:41Z","receivedAt":"2008-10-07T14:30:41Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"\"J.R. Mauro\" <jrm8005@gmail.com> writes:\n\n> Git doesn't set special options to it's pager command if the LESS\n> environment variable is set.\n\nYes, this is by design: if you customized less, git obeys the\nconfiguration you've set. Otherwise, it takes a default wich is more\nappropriate to git that what \"less\" does without $LESS set.\n\nThat policy isn't perfect, but I think any other would be worse: I\nwouldn'l like git to change my configuration if I did set $LESS\nmyself, and I also prefer git's default to LESS default when it comes\nto paging git commands (but I like less's default for other uses, for\nexample, I like the man page to disapear when I close it).\n\n-- \nMatthieu\n"}]}