git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git diff shows no output

From
CBCharles Brossollet <chbrosso@lltech.fr>
Date
Aug 20, 2010, 13:02 UTC
Message-ID
<EBCC0FEA-1FF2-4909-BE80-DE280C9D6487@lltech.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
Next: Jonathan Nieder
Message 1 of 3 in “git diff shows no output”
  1. Charles BrossolletAug 20, 2010
  2. Jonathan NiederAug 20, 2010
  3. Charles BrossolletAug 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.