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

Re: git-diff not showing changes (corrupt repo?)

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Oct 3, 2007, 03:44 UTC
Message-ID
<alpine.LFD.0.999.0710022041340.3579@woody.linux-foundation.org>
In-Reply-To
<470309D5.702@gmail.com>
On Tue, 2 Oct 2007, Dan Zwell wrote:
Show 8 quoted lines
>
> I bisected twice to be sure, and have CC'd Martin Waitz on this (the issue is
> that some of my changes in a local repo are not being displayed by git-diff,
> either before or after they are committed, but git-status, git-whatchanged,
> and git-diff-tree all see that changes have been committed, and git-diff-files
> does see uncommitted changes).
> 
> e88ee2915493213ea0d0be64c542c090fefd4b33 is first bad commit
You most likely have a very buggy "less".
Try this:
	echo hello | less -FRSX
on the command line. Do you see the "hello"?

(The above is assuming you haven't set GIT_PAGER, PAGER or the LESS variables manually to something else)

		Linus
Previous: Jeff KingNext: Jeff King
Message 7 of 8 in “git-diff not showing changes (corrupt repo?)”
  1. Dan ZwellOct 2, 2007
  2. Junio C HamanoOct 2, 2007
  3. Dan ZwellOct 3, 2007
  4. Jeff KingOct 3, 2007
  5. Dan ZwellOct 3, 2007
  6. Jeff KingOct 3, 2007
  7. Linus TorvaldsOct 3, 2007
  8. Jeff KingOct 2, 2007

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.