All of lore.kernel.org
 help / color / mirror / Atom feed
* 'git diff HEAD' pager quirks
@ 2006-12-14 22:01 Jeff Garzik
  0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2006-12-14 22:01 UTC (permalink / raw)
  To: Git Mailing List

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]$

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-14 23:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-14 22:01 'git diff HEAD' pager quirks Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.