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

Re: Git doesn't detect change, if file modification time is restored to original one

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Jul 23, 2015, 07:58 UTC
Message-ID
<55B09E95.4000700@gmail.com>
In-Reply-To
<CABEDGg8zixeab-CsviAU-fNE1Jmi0ZWbN6=e6Q+-XK3eFv6djA@mail.gmail.com>
On 7/23/2015 9:29, Konrád Lőrinczi wrote:
> Interesting, that git status doesn't show replaced changes, if the
> mtime is same as original.
See the somewhat related FAQ entry at [1] and also the lengthy discussion at [2] about a similar issue. That said, deleting the .git/index file should make these files appear as modified.

[1] https://git.wiki.kernel.org/index.php/Git_FAQ#Why_isn.27t_Git_preserving_modification_time_on_files.3F [2] https://github.com/msysgit/git/issues/312

Regards, Sebastian

Previous: Konrád LőrincziNext: Konrád Lőrinczi
Message 2 of 7 in “Git doesn't detect change, if file modification time is restored to original one”
  1. Konrád LőrincziJul 23, 2015
  2. Sebastian SchuberthJul 23, 2015
  3. Konrád LőrincziJul 23, 2015
  4. Konstantin KhomoutovJul 23, 2015
  5. Karsten BleesJul 23, 2015
  6. Junio C HamanoJul 23, 2015
  7. Johannes SchindelinJul 23, 2015

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.