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

Stranges with git-diff-index

From
СШСергей Шарыбин <nazgul@school9.perm.ru>
Date
Sep 1, 2008, 09:28 UTC
Message-ID
<48BBB5B4.9080805@school9.perm.ru>
Hi,

I've found this strange thing in git diff-index. I've got a clear work tree (all changes are commited). Then I've changed some files. After this I've run `git diff-index --name-status HEAD` and this command showed me changed files. After this I've undid this changes (I did this myself, not using git-reset or any stuff like this). But when I run this command again it showed me that this files are still changed. After this I've run git-status and it told me that there is nothing to commit. And after this git-diff-index tells me that there is no changed files too.

I think it's not normal.
-- 
With best regards, Sergey I. Sharybin
Next: Johannes Sixt
Message 1 of 2 in “Stranges with git-diff-index”
  1. Сергей ШарыбинSep 1, 2008
  2. Johannes SixtSep 1, 2008

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.