)]}'
{
  "commit": "f366bfe16b350240c70c487d180c76ddcb8a1b2d",
  "tree": "8300e3b1b91d01b75bf7a08fc5642a0eea04302a",
  "parents": [
    "cb2badb4db67bcd02cc99a336c7b6bb0281980a1"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Thu Oct 02 09:29:30 2025 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Oct 02 09:32:32 2025 -0700"
  },
  "message": "varint: use explicit width for integers\n\nThe varint subsystem currently uses implicit widths for integers. On the\none hand we use `uintmax_t` for the actual value. On the other hand, we\nuse `int` for the length of the encoded varint.\n\nBoth of these have known maximum values, as we only support at most 16\nbytes when encoding varints. Thus, we know that we won\u0027t ever exceed\n`uint64_t` for the actual value and `uint8_t` for the prefix length.\n\nRefactor the code to use explicit widths. Besides making the logic\nplatform-independent, it also makes our life a bit easier in the next\ncommit, where we reimplement \"varint.c\" in Rust.\n\nSuggested-by: Ezekiel Newren \u003cezekielnewren@gmail.com\u003e\nSigned-off-by: Patrick Steinhardt \u003cps@pks.im\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "71108ac79b78b84332b5306e8fe0327ce194d09b",
      "old_mode": 33188,
      "old_path": "dir.c",
      "new_id": "0a67a99cb3dd3f29ab1984db5c090438106aac1b",
      "new_mode": 33188,
      "new_path": "dir.c"
    },
    {
      "type": "modify",
      "old_id": "06ad74db2286aee617b0f7bf5eb3c15cc252a3bf",
      "old_mode": 33188,
      "old_path": "read-cache.c",
      "new_id": "41b44148b1e04fabb84a290ebf34a8838a507381",
      "new_mode": 33188,
      "new_path": "read-cache.c"
    },
    {
      "type": "modify",
      "old_id": "409c4977a1e3a3a72dcd1452b41abdcb5a42b665",
      "old_mode": 33188,
      "old_path": "varint.c",
      "new_id": "03cd54416b6a46256fd31e27abb08af5a758edfc",
      "new_mode": 33188,
      "new_path": "varint.c"
    },
    {
      "type": "modify",
      "old_id": "f78bb0ca528dcd2b955fba8ca1d9e3db7f776abb",
      "old_mode": 33188,
      "old_path": "varint.h",
      "new_id": "eb401935bd24c9040694497dc7d5d39b007c3aab",
      "new_mode": 33188,
      "new_path": "varint.h"
    }
  ]
}
