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

Re: change in behaviour of git status and/or gitk bug

From
Jeff King <peff@peff.net>
Date
May 7, 2010, 05:00 UTC
Message-ID
<20100507050054.GA25987@coredump.intra.peff.net>
In-Reply-To
<n2na038bef51005061820o581b2f0aq940282264b7f083f@mail.gmail.com>
On Thu, May 06, 2010 at 06:20:34PM -0700, Chris Packham wrote:
Show 7 quoted lines
> I noticed a while back that with gitk I kept on getting files shown as
> "Local uncommitted changes, not checked in to index" when I'd made
> modifications to them then backed them out so the working tree content
> was the same as the index. I used to (with git 1.6.x) fix / work
> around this by running git status.
> 
> Now, with git 1.7.1, that workaround has stopped working. No doubt

This was lost in v1.7.0, but should be back in v1.7.2. The actual fix is 4bb6644 (git status: refresh the index if possible, 2010-04-02).

You can run "git update-index --refresh" to get the same effect. Running "git diff" also works.

There was some talk (and a patch) recently about gitk running "update-index --refresh", but I don't know if it got picked up. See:

  http://article.gmane.org/gmane.comp.version-control.git/144182
-Peff
Previous: Chris PackhamNext: Chris Packham
Message 2 of 3 in “change in behaviour of git status and/or gitk bug”
  1. Chris PackhamMay 7, 2010
  2. Jeff KingMay 7, 2010
  3. Chris PackhamMay 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.