)]}'
{
  "commit": "7534d456816d49f20716e49900d43cedb02e8c42",
  "tree": "2c7f2f2b5dc99f9cb3fc43b92a5b4afdc246c73f",
  "parents": [
    "0a778894b9676a1e93870589851731dad05e086a"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Mon Jul 13 07:52:14 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Jul 13 08:13:17 2026 -0700"
  },
  "message": "builtin/gc: fix signedness issues in ODB-related functionality\n\nThere are a couple of signedness issues in ODB-related functionality.\nThese are not a problem because we disable -Wsign-compare in this file,\nbut once we move these functions into \"odb/source-files.c\" they will\nresult in warnings.\n\nFix those issues:\n\n  - In `too_many_loose_objects()` we receive a signed limit, but compare\n    it with the unsigned actual number of loose objects. This is fixed\n    by bailing out immediately when the limit is smaller than or equal\n    to zero, which we also do similarly in other places. The warning is\n    then squelched via a cast.\n\n  - In `find_base_packs()` we compare the signed size of the pack\n    against the unsigned limit. As the pack size is always going to be a\n    positive file size it\u0027s safe to cast it to an unsigned value.\n\n  - In `odb_optimize()` we compare the unsigned `keep_pack.nr` value\n    against the signed `gc_auto_pack_limit`. We only reach this code\n    when `too_many_packs()` returns true-ish, and that can only happen\n    when `gc_auto_pack_limit \u003e 0`. Consequently, we can fix the warning\n    by casting the limit to an unsigned value.\n\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": "32071824887cda501d8d67da79d513a078482fe4",
      "old_mode": 33188,
      "old_path": "builtin/gc.c",
      "new_id": "8cf3781313bc53cb9cb4834a6aa160815851288f",
      "new_mode": 33188,
      "new_path": "builtin/gc.c"
    }
  ]
}
