)]}'
{
  "commit": "b36143daa1637cd9112f23a086ab8e098d4bf3f3",
  "tree": "0ea4baa365a4b7d96be6f13e45f8dda7aa72e356",
  "parents": [
    "37b3475fb530c14109211faca33716a173db61ed"
  ],
  "author": {
    "name": "Shashank S Mogaveera",
    "email": "shashu8660@gmail.com",
    "time": "Tue Oct 27 16:59:02 2026 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Oct 27 14:41:39 2026 -0700"
  },
  "message": "prune-packed: remove USE_THE_REPOSITORY_VARIABLE\n\nThe prune_packed_objects() function uses the global\nthe_repository variable. To help with the libification effort,\nchange this function so it takes a \u0027struct repository\u0027 pointer\nas an argument instead.\n\nThe function for_each_loose_file_in_source() uses a callback\nthat only takes a single \u0027void *data\u0027 pointer. This means we\ncannot pass both the repository pointer and the \u0027opts\u0027 integer\nat the same time. To fix this, create a new \u0027struct prune_data\u0027\nto hold both of them together, and update the prune_subdir() and\nprune_object() callbacks to read from this new struct.\n\nUpdate the builtins that call this function to pass their local\n`repo` parameters. As all of those builtins are declared with\n`RUN_SETUP` we know that they won\u0027t execute outside a repository\nand thus the repository parameter will be set. Unless the command\nwas invoked with \"-h\" to print help, but all new uses of the `repo`\nvariable are after a call to `parse_options()` which knows to exit\nearly in case it sees \"-h\"\n\nFinally, drop the USE_THE_REPOSITORY_VARIABLE macro from\nprune-packed.c.\n\nSigned-off-by: Shashank S Mogaveera \u003cshashu8660@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4d63f26b0a120caf54ec8ca404be7c0d3d877a8d",
      "old_mode": 33188,
      "old_path": "builtin/prune-packed.c",
      "new_id": "d44e7f81d4836c8462dd8c722754c269bb6efcad",
      "new_mode": 33188,
      "new_path": "builtin/prune-packed.c"
    },
    {
      "type": "modify",
      "old_id": "97f4c1418bc58eed693f889cb4f00b31a7d12295",
      "old_mode": 33188,
      "old_path": "builtin/prune.c",
      "new_id": "d543c3ad2d08986d0f7f4123c6a8a3e771c9a598",
      "new_mode": 33188,
      "new_path": "builtin/prune.c"
    },
    {
      "type": "modify",
      "old_id": "5d06872d7753572608540270307d139eac601770",
      "old_mode": 33188,
      "old_path": "builtin/repack.c",
      "new_id": "585cdd3d1d9e3c0cbf6186046f168b2bea27c19a",
      "new_mode": 33188,
      "new_path": "builtin/repack.c"
    },
    {
      "type": "modify",
      "old_id": "b6749b8d13233de6aa882feae706e09c5c48b343",
      "old_mode": 33188,
      "old_path": "prune-packed.c",
      "new_id": "00a770795fd1b1ca1b0332f74fb334457239aa3b",
      "new_mode": 33188,
      "new_path": "prune-packed.c"
    },
    {
      "type": "modify",
      "old_id": "936fa9df23e8df81a3d7eba3b2614b9c2dfec3b3",
      "old_mode": 33188,
      "old_path": "prune-packed.h",
      "new_id": "9ec7ff0d602bca918d25897a071385a5ed024aec",
      "new_mode": 33188,
      "new_path": "prune-packed.h"
    }
  ]
}
