git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git diff shows no output
@ 2010-08-20 13:02 Charles Brossollet
  2010-08-20 13:38 ` Jonathan Nieder
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Brossollet @ 2010-08-20 13:02 UTC (permalink / raw)
  To: git

Hello,

I'm a new user of git, and I meet a very strange behaviour with the git diff command.
I have modified stuff in a file, with changes both in the index and the working tree.

"git diff" shows nothing, while "git diff | cat" shows the diff, as well as "git diff>output.txt" puts diff in output.txt.
Quite Weird

I'm on Mac OS X 10.6.4, using git 1.7.2.1, installed via macports.

Best,
-- 
Charles

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git diff shows no output
  2010-08-20 13:02 git diff shows no output Charles Brossollet
@ 2010-08-20 13:38 ` Jonathan Nieder
  2010-08-23  6:34   ` Charles Brossollet
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Nieder @ 2010-08-20 13:38 UTC (permalink / raw)
  To: Charles Brossollet; +Cc: git

Hi!

Charles Brossollet wrote:

> "git diff" shows nothing, while "git diff | cat" shows the diff, as
> well as "git diff>output.txt" puts diff in output.txt.

"git diff" paginates its output by default.  Perhaps your $LESS
contains -F but not -X?

Hope that helps,
Jonathan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git diff shows no output
  2010-08-20 13:38 ` Jonathan Nieder
@ 2010-08-23  6:34   ` Charles Brossollet
  0 siblings, 0 replies; 3+ messages in thread
From: Charles Brossollet @ 2010-08-23  6:34 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: git

That's right, nice guess!! thanks a lot!

Best
-- 
Charles

Le 20 août 2010 à 15:38, Jonathan Nieder a écrit :

> Hi!
> 
> Charles Brossollet wrote:
> 
>> "git diff" shows nothing, while "git diff | cat" shows the diff, as
>> well as "git diff>output.txt" puts diff in output.txt.
> 
> "git diff" paginates its output by default.  Perhaps your $LESS
> contains -F but not -X?
> 
> Hope that helps,
> Jonathan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-23  6:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 13:02 git diff shows no output Charles Brossollet
2010-08-20 13:38 ` Jonathan Nieder
2010-08-23  6:34   ` Charles Brossollet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).