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

Re: git-diff should not fire up $PAGER if there is no diff

From
jidanni@jidanni.org <jidanni@jidanni.org>
Date
Dec 16, 2008, 01:16 UTC
Message-ID
<87oczcx6ky.fsf@jidanni.org>
In-Reply-To
<alpine.DEB.1.00.0812160153340.14632@racer>
>>>>> "JS" == Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

JS> Maybe you are not aware just how annoying these "this should do that, that JS> should do this" without a patch are?

Yes but I must first learn the thing I am about to make a patch for.
In the mean time I could like most beginners, just feel dumb.

Or I could let you have my valuable insights on how things look to a beginner. You would else have no way of knowing. Sorry I always come across as Don Rickles the pushy customer... it's all a charade... now let's get back to business,

>>>>> "JK" == Jeff King <peff@peff.net> writes:

JK> The usual workaround is to ask the pager to exit immediately if the JK> output is small. I.e., putting "F" in your LESS variable (which git does JK> automatically if you don't already have LESS set).

Ah, but who doesn't have LESS set these days? OK, the man page should mention that so people will put the F on their LESS variable, like I recall another man page already does.

Next: Jeff King
Message 1 of 3 in “Re: git-diff should not fire up $PAGER if there is no diff”
  1. jidanni@jidanni.orgDec 16, 2008
  2. Jeff KingDec 16, 2008
  3. jidanni@jidanni.orgDec 16, 2008

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.