)]}'
{
  "commit": "b7b6e9e02f6b6b84848b2458d5d2b3d47260d4bb",
  "tree": "e664b132d37b3a7539c3d5082591bddfc9211729",
  "parents": [
    "8817d7931aab41d4423fbf588f1ab2247070d816"
  ],
  "author": {
    "name": "Tian Yuchen",
    "email": "cat@malon.dev",
    "time": "Mon Jul 20 18:53:33 2026 +0800"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Jul 20 07:37:05 2026 -0700"
  },
  "message": "read-cache: pass \u0027repo\u0027 to \u0027ce_mode_from_stat()\u0027\n\nThe ce_mode_from_stat() function is a performance-critical static\ninline helper in \u0027read-cache.h\u0027. As we migrate configuration\nvariables into the repository struct, this helper needs access\nto the repository context.\n\nUpdate the signature of ce_mode_from_stat() to take a \u0027struct\nrepository *\u0027 parameter, and update all callers to pass the\nappropriate repository instance.\n\nTo prepare for the overhead of replacing cheap global variable\naccesses with getter functions, the boolean expressions are\nreordered to evaluate \u0027S_ISREG(mode)\u0027 first.\n\nWhile at it, add a comment for ce_mode_from_stat().\n\nMentored-by: Christian Couder \u003cchristian.couder@gmail.com\u003e\nMentored-by: Ayush Chandekar \u003cayu.chandekar@gmail.com\u003e\nMentored-by: Olamide Caleb Bello \u003cbelkid98@gmail.com\u003e\nSigned-off-by: Tian Yuchen \u003ccat@malon.dev\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "249248d4f205ca5f5121487573d30f4ed0011b9d",
      "old_mode": 33188,
      "old_path": "apply.c",
      "new_id": "26286eb57b4f52bbd3b9955071c0d52fe2c7dda0",
      "new_mode": 33188,
      "new_path": "apply.c"
    },
    {
      "type": "modify",
      "old_id": "3d6646c318b98e806a0aba09c3f034b133dc582c",
      "old_mode": 33188,
      "old_path": "builtin/update-index.c",
      "new_id": "afd672a9145b4f954a7d93b6cc7bef9528981e0c",
      "new_mode": 33188,
      "new_path": "builtin/update-index.c"
    },
    {
      "type": "modify",
      "old_id": "ae91027a024eece23f0f1ede20467eeb425a2b3b",
      "old_mode": 33188,
      "old_path": "diff-lib.c",
      "new_id": "46cae637ecda839ffefe417df8e13279ca72bb47",
      "new_mode": 33188,
      "new_path": "diff-lib.c"
    },
    {
      "type": "modify",
      "old_id": "1ced8c630ef637340f3063ae06bd2aa1f0d894bf",
      "old_mode": 33188,
      "old_path": "read-cache.c",
      "new_id": "a9f059174305eb402540f8b67bf105783395c09f",
      "new_mode": 33188,
      "new_path": "read-cache.c"
    },
    {
      "type": "modify",
      "old_id": "043da1f1aae706746ea46544a9dfbf0fae6c8f55",
      "old_mode": 33188,
      "old_path": "read-cache.h",
      "new_id": "af8c657ecbeb48e8c520ba5bd062b7d7bd895d73",
      "new_mode": 33188,
      "new_path": "read-cache.h"
    }
  ]
}
