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

Re: gitk pays too much attention to file timestamps

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 7, 2010, 01:01 UTC
Message-ID
<20100407010109.GB11346@progeny.tock>
In-Reply-To
<u2r32541b131004061658r555f21dbgbe011960d9152d3c@mail.gmail.com>
Avery Pennarun wrote:
> I'm not sure why I'd want to know accurately
> whether or not my file matches the index, but then have gitk fail to
> tell me about *what* doesn't match.
Ah, yes, I am not thinking very well.  Please forget what I said before.

v1.5.3-rc5~10 (git-diff: squelch "empty" diffs, 2007-08-03) has the answer for your question. I am not sure I agree with its conclusion.

v1.5.3~8 (git-diff: resurrect the traditional empty "diff --git" behaviour, 2007-08-31) tweaked the porcelain more by dropping the warning message and adding the diff.autorefreshindex variable.

What is missing is a --refresh-index option for diff-files and diff-index, to make it easy for porcelain, especially long-running porcelain like gitk.

Jonathan
Previous: Avery Pennarun
Message 15 of 15 in “gitk pays too much attention to file timestamps”
  1. Alexander GladyshApr 6, 2010
  2. Markus HeidelbergApr 6, 2010
  3. Jonathan NiederApr 6, 2010
  4. Alexander GladyshApr 6, 2010
  5. gitk: refresh index before checking for local changesJonathan Nieder, Apr 7, 2010
  6. Alexander GladyshApr 7, 2010
  7. Jonathan NiederApr 7, 2010
  8. A Large Angry SCMApr 7, 2010
  9. Jonathan NiederApr 7, 2010
  10. Junio C HamanoApr 7, 2010
  11. A Large Angry SCMApr 7, 2010
  12. Avery PennarunApr 7, 2010
  13. Jon SeymourApr 7, 2010
  14. Avery PennarunApr 6, 2010
  15. Jonathan NiederApr 7, 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.