# git diff shows no output

3 messages from 2010-08-20 to 2010-08-23. Participants: Charles Brossollet, Jonathan Nieder.
Thread: https://gitlist.dev/t/24805

## Charles Brossollet, 2010-08-20 13:02

Subject: git diff shows no output
Message-ID: <EBCC0FEA-1FF2-4909-BE80-DE280C9D6487@lltech.fr>
URL: https://gitlist.dev/e/EBCC0FEA-1FF2-4909-BE80-DE280C9D6487%40lltech.fr

```
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

```

## Jonathan Nieder, 2010-08-20 13:38

Subject: Re: git diff shows no output
Message-ID: <20100820133856.GC15736@burratino>
URL: https://gitlist.dev/e/20100820133856.GC15736%40burratino
In-Reply-To: <EBCC0FEA-1FF2-4909-BE80-DE280C9D6487@lltech.fr>

```
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

```

## Charles Brossollet, 2010-08-23 06:34

Subject: Re: git diff shows no output
Message-ID: <5A25561B-B643-4203-82B7-BCED02EAFC61@lltech.fr>
URL: https://gitlist.dev/e/5A25561B-B643-4203-82B7-BCED02EAFC61%40lltech.fr
In-Reply-To: <20100820133856.GC15736@burratino>

```
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

```
