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
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 5, 2021, 22:18 UTC
Message-ID
<CAPig+cSRKJUhwMagx_h21pJbBiX9paA5cvDbudDNcRVea6g3Mg@mail.gmail.com>
In-Reply-To
<xmqqa6rh9sph.fsf@gitster.c.googlers.com>
On Fri, Mar 5, 2021 at 4:50 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> 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.
>
> A plumbing command "git diff" has an equivalent of "update-index
> --refresh" built into it, but the plumbing commands are designed
> to be used in scripts, and in order to allow scripting programmers
> to avoid making unnecessary "update-index --refresh", e.g.
Did you mean:
    A porcelain command "git diff" has an equivalent...
?
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 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.