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

Re: "git diff-files" command reports differences that don't exist

From
MBMichael Brown <michael.brown@discourse.org>
Date
Mar 5, 2021, 22:20 UTC
Message-ID
<b3774f98-d2aa-3ae2-2aa5-c80339684c50@discourse.org>
In-Reply-To
<xmqqa6rh9sph.fsf@gitster.c.googlers.com>
On 2021-03-05 4:49 p.m., Junio C Hamano wrote:
> This is totally expected behaviour.  In general when you are working
> with plumbing commands like diff-files and diff-index, you are
> expected to do "update-index --refresh" upfront.

Thanks. I wondered if since it was a plumbing command there might have been something I was missing but didn't know where to look.

Cheers.
-- 
Michael Brown
Civilized Discourse Construction Kit, Inc.
https://www.discourse.org/
Previous: Junio C Hamano
Message 5 of 5 in “"git diff-files" command reports differences that don't exist”
  1. Michael BrownMar 5, 2021
  2. Junio C HamanoMar 5, 2021
  3. Eric SunshineMar 5, 2021
  4. Junio C HamanoMar 5, 2021
  5. Michael BrownMar 5, 2021

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.