)]}'
{
  "commit": "6b6d1d56eb21ef4e0c835864cb7280a1509f0c7c",
  "tree": "57006dc115fab1e1cf91d97232940e4a28db6587",
  "parents": [
    "7e34d8174dcda3435d1404c9a30bef46afe6c13e"
  ],
  "author": {
    "name": "Mihai Cosma",
    "email": "mcosma@gmail.com",
    "time": "Thu Oct 22 14:44:19 2026 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Oct 23 15:14:29 2026 -0700"
  },
  "message": "read-cache: verify skipHash index by stat data\n\n\"git status\" and other commands read and refresh the index without the\nlock, then write it only if repo_update_index_if_able() finds the\nfile\u0027s trailing checksum unchanged, so they cannot undo an update made\nby another process in between.\n\nSince ee1f0c242e (read-cache: add index.skipHash config option,\n2023-01-06), the trailer can be all zeros, and feature.manyFiles and\nScalar turn that on. The check then passes for any index on disk, and\na \"git add\" that lands between status reading the index and taking the\nlock is silently reverted.\n\nWhen the recorded checksum is null, check instead that the stat data of\nthe index file is unchanged since it was read or written, apart from\nthe ctime, which renaming the lockfile into place changes. Ignore\ncore.checkStat and core.useNanosec here: a false match loses an\nupdate, while a false mismatch only skips an optional write. On Windows,\nwhich reports no inode numbers, this rests on the size and the mtime,\nso two same-size rewrites within one 100ns tick could still be missed.\n\nunpack_trees() builds a new index from the one it was given and copies\nits checksum, so copy the stat data along with it.\n\nAssisted-by: Claude Opus 5.5, Gemini 4 Argon\nSigned-off-by: Mihai Cosma \u003cmcosma@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "066dd8bc3b8397de0a616fa90f7111e6eef27b32",
      "old_mode": 33188,
      "old_path": "read-cache-ll.h",
      "new_id": "a45aff02eab87754c2c83efd17e30d40487de0be",
      "new_mode": 33188,
      "new_path": "read-cache-ll.h"
    },
    {
      "type": "modify",
      "old_id": "c4cf08a3a341563d006b11168b67f8fe5b2b259e",
      "old_mode": 33188,
      "old_path": "read-cache.c",
      "new_id": "58bae677b852ce8f0d7d88ce362c46aceb0a6abc",
      "new_mode": 33188,
      "new_path": "read-cache.c"
    },
    {
      "type": "modify",
      "old_id": "0fd7c79911572e36c715abfd6e4a3179798ee519",
      "old_mode": 33261,
      "old_path": "t/t7508-status.sh",
      "new_id": "c045a651f880b28c0c0a1a0ab38a49e1daaf82f9",
      "new_mode": 33261,
      "new_path": "t/t7508-status.sh"
    },
    {
      "type": "modify",
      "old_id": "1802809ad3c50ab9bb52fb95abe79ebc063625b7",
      "old_mode": 33188,
      "old_path": "unpack-trees.c",
      "new_id": "d6a859420f1faeb3f79c9a8aef0ad505b5c602a2",
      "new_mode": 33188,
      "new_path": "unpack-trees.c"
    }
  ]
}
