'git diff HEAD' pager quirks

From: Jeff Garzik <jeff@garzik.org>
Date: 2006-12-15 09:01:46
So, after a 'yum upgrade' brought me git-core-1.4.4.2-2.fc6, I 
discovered that "git diff HEAD" will produce paged output, if at a tty. 
  Nice, I like the improvement.

However, when there is no output at all (nothing dirty in working dir), 
"git diff HEAD" will sometimes invoke $PAGER ("/usr/bin/less" here) 
__anyway__.

This causes the cursor to jump down 20-30 lines, before returning the 
command prompt.  Annoying.  Example follows.

	Jeff


---------------------<begin BEFORE>----------------------------
[jgarzik@pretzel libata-dev]$ git diff HEAD
[jgarzik@pretzel libata-dev]$
---------------------<end BEFORE>------------------------------

---------------------<begin AFTER>-----------------------------
[jgarzik@pretzel libata-dev]$ git diff HEAD



















[jgarzik@pretzel libata-dev]$
---------------------<end AFTER>-------------------------------
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Dec 15 10:08:51 2006

This archive was generated by hypermail 2.1.8 : 2006-12-15 10:16:37 EST