)]}'
{
  "commit": "2624a7e05611cde935da8f57feb558e8f2239bbc",
  "tree": "78b9cc5c1550b0955bc50d49fd8ac120f8e21c56",
  "parents": [
    "ca156f7bc9109c552973414a63d310f76ef0cbf8"
  ],
  "author": {
    "name": "Daniel Lenski",
    "email": "dlenski@gmail.com",
    "time": "Tue May 21 21:14:36 2024 -0700"
  },
  "committer": {
    "name": "Daniel Lenski",
    "email": "dlenski@gmail.com",
    "time": "Thu Jan 02 11:17:17 2025 -0500"
  },
  "message": "For Apple silicon, use machdep.cpu.brand_string in preference to decoding hw.machine\n\nThis functionality was implemented in #65 (\"Updated package.name to also\nquery machdep.cpu.brand_string if decode of hw.machine fails\"), but then it was\nomitted from the subsequent #100, probably inadvertently.\n\nAdding that functionality back here, so that the package/device name can be\nshown correctly on recent devices and macOS/iOS versions.  I have reversed\nthe order so that `machdep.cpu.brand_string` is checked before attempting to\ndecode `hw.machine`, since the former appears to be more future-proof.\n\nBefore this change, on a recent MacBook Pro:\n\n    $ cpu-info\n    ...\n    Debug (cpuinfo): hw.machine: arm64\n    Warning in cpuinfo: parsing \"hw.machine\" failed: Undefined error: 0\n    ...\n    Packages:\n    \t0:\n\nAfter this change:\n\n    $ cpu-info\n    ...\n    Debug (cpuinfo): machdep.cpu.brand_string: Apple M2 Pro\n    ...\n    Packages:\n    \t0: Apple M2 Pro\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3fb62414e0f4b8c79309787d6d2b8228fe1ce431",
      "old_mode": 33188,
      "old_path": "src/arm/mach/init.c",
      "new_id": "c4e6521b3c1a2a980ff584dab636bcda807b2db3",
      "new_mode": 33188,
      "new_path": "src/arm/mach/init.c"
    }
  ]
}
