)]}'
{
  "commit": "3279c13c00f0d9c4ba7d2b67c73c36ec308e5366",
  "tree": "b7370683f598df1b567f5affc26beb76b74c0b60",
  "parents": [
    "94f057755b7941b321fd11fec1b2e3ca5313a4e0"
  ],
  "author": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Jul 15 13:10:06 2026 -0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Jul 15 13:13:20 2026 -0700"
  },
  "message": "submodule--helper: avoid use of %zu for now\n\nSince d7d850e2b9 (CodingGuidelines: mention C99 features we can\u0027t\nuse, 2022-10-10), our CodingGuidelines document has explicitly\nforbidden the use of \u0027%z\u0027 and \u0027%zu\u0027 printf() format specifiers,\neven though C99 does support them.  However, a new instance crept\nin via 82c36fa0a9 (submodule: hash the submodule name for the\ngitdir path, 2026-01-12).\n\nWe could claim that this is an unintentional weather balloon that\nnobody has complained about for the past six months since Git 2.54,\nproving that it is now safe to use these format specifiers.  But\n(1) it is probably too early to make that claim, as distributions\noften stick to a stale version for several releases, and (2) it is\nunlikely that a failure in this code path would manifest as a\nmajor user-visible breakage that would trigger a failure report to\npercolate down to us.\n\nInstead, let\u0027s stick to the established workaround recommended by\nour CodingGuidelines, which is to cast the value to (uintmax_t) and\nformat it with PRIuMAX, at least for now.  Even if we eventually\nperform a bulk update using a Coccinelle script to transition to %z\nand %zu in the future, adding one more instance to the pile that\nwill need such a conversion is hardly a tragedy.\n\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2f589e3b378d3f6f25ce620caaeb0dfba4582f62",
      "old_mode": 33188,
      "old_path": "builtin/submodule--helper.c",
      "new_id": "49463b7d2b568dcc9b6d79514a8fbba34a49ff06",
      "new_mode": 33188,
      "new_path": "builtin/submodule--helper.c"
    }
  ]
}
