git diff shows no output

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

git diff shows no output

From: Charles Brossollet <hidden>
Date: 2016-06-15 22:49:21

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

Re: git diff shows no output

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:21

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

Re: git diff shows no output

From: Charles Brossollet <hidden>
Date: 2016-06-15 22:49:22

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:
quoted
"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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help