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

Re: gitk pays too much attention to file timestamps

From
Alexander Gladysh <agladysh@gmail.com>
Date
Apr 6, 2010, 23:47 UTC
Message-ID
<n2kc6c947f61004061647ybb6c2f55zc70197362764ef8@mail.gmail.com>
In-Reply-To
<20100406233601.GA27533@progeny.tock>
Jonathan,
thank you for the explanation!
<...>
> gitk is something of a passive observer of the index, which is
> actually something I like about it.  This keeps it relatively fast
> and can be useful when trying to understand other commands.
I *think* that 1.6.x didn't have this issue. (Sorry, can't check now.)
> I am not sure how other people use gitk, though.  Maybe this would
> be worth changing.  For a reference point, another command in a
> very similar situation is ‘git diff’: people who want the speedup
> from avoiding refreshing the index with that command use
>        [diff]
>                autoRefreshIndex = false
> in their configuration file, so the rest of us don’t have to suffer
> from the confusing behavior.
> As some kind of evil compromise, it might be worth teaching gitk
> to check the same configuration and run update-index --refresh in
> getcommits{} if and only if it is unset or set to true.
> Thoughts?
That's fine as far as I'm concerned.
The current behaviour is really annoying.

If I want something fast, I do not use GUI tools. Gitk starts up rather slowly on my box anyway.

Alexander.
Previous: Jonathan NiederNext: Jonathan Nieder
Message 4 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.