)]}'
{
  "commit": "98e50b702d9ab784ec918399aaa20adcfd1af9a9",
  "tree": "276a2748fdedaf8e6a59f56dead02ddfa956770a",
  "parents": [
    "bfd6cbda2f6cb9f750254dd493d257612c39f343"
  ],
  "author": {
    "name": "Dustin Spicuzza",
    "email": "dustin@virtualroadside.com",
    "time": "Mon Apr 06 11:50:55 2026 -0400"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Apr 06 08:50:55 2026 -0700"
  },
  "message": "fix: avoid copy constructor instantiation in shared_ptr fallback cast (#6028)\n\n* tests: add regressions for shared_ptr reference_internal fallback\n\n* fix: avoid copy constructor instantiation in shared_ptr fallback cast\n\n* Remove stray empty line\n\n* tests: rename PyTorch shared_ptr regression test files\n\n* refactor: add cast_non_owning helper for reference-like casts\n\nName the non-owning generic cast path so callers do not have to rediscover that\nreference-like policies must pass null copy/move constructor callbacks. This\nkeeps the shared_ptr reference_internal fallback self-documenting and points\nfuture maintainers toward the safe API.\n\nMade-with: Cursor\n\n* tests: guard deprecated-copy warning probes with __has_warning\n\nUse __has_warning for the Clang-only regression test so older compiler jobs skip\nunsupported warning groups instead of failing with -Wunknown-warning-option. A\nsimple __clang_major__ \u003e\u003d 13 guard would be shorter, but it bakes in a version\ncutoff; __has_warning is slightly more verbose while being more robust to\nvendor builds, backports, and future packaging differences.\n\nMade-with: Cursor\n\n---------\n\nCo-authored-by: Ralf W. Grosse-Kunstleve \u003crgrossekunst@nvidia.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bef0f2cb8f90b5232c19f64d9cdb192639630f3e",
      "old_mode": 33188,
      "old_path": "include/pybind11/cast.h",
      "new_id": "b7a4c2b0cec1a945eef4d5033cbbfddcba0371bc",
      "new_mode": 33188,
      "new_path": "include/pybind11/cast.h"
    },
    {
      "type": "modify",
      "old_id": "b0c59e113812548442f1c4a533b8260450ae9a46",
      "old_mode": 33188,
      "old_path": "include/pybind11/detail/type_caster_base.h",
      "new_id": "8fbf700e124c9d29d29dc7b08e9713e3d5161393",
      "new_mode": 33188,
      "new_path": "include/pybind11/detail/type_caster_base.h"
    },
    {
      "type": "modify",
      "old_id": "e87b1e93b3ff82dddec841b4ced92a5432572dc7",
      "old_mode": 33188,
      "old_path": "tests/CMakeLists.txt",
      "new_id": "d5d597cdffe3ce34a60f3662d8952211f89b8a61",
      "new_mode": 33188,
      "new_path": "tests/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "4a7b77c69ad746d547397e665a926a1f519f6830",
      "old_mode": 33188,
      "old_path": "tests/test_class_sh_property.py",
      "new_id": "b8a5933e5f2687b1faeb4b2fdc76c57d82b6b87f",
      "new_mode": 33188,
      "new_path": "tests/test_class_sh_property.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "14259622428c629a0fae9253700a9c95ba36ca20",
      "new_mode": 33188,
      "new_path": "tests/test_pytorch_shared_ptr_cast_regression.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b7c393b325c05741c9c301d43a4a9aaf59394fba",
      "new_mode": 33188,
      "new_path": "tests/test_pytorch_shared_ptr_cast_regression.py"
    }
  ]
}
