)]}'
{
  "commit": "d551802db593436947a2464a7da1020edf0e7b56",
  "tree": "897cf88b201e0cc7e096bafa7d4053ad40327e49",
  "parents": [
    "0ce010cdb12e45f4bf81ac82755bad3b4ab050b6"
  ],
  "author": {
    "name": "Jim Chen",
    "email": "darchons@users.noreply.github.com",
    "time": "Wed Feb 03 13:13:55 2021 -0500"
  },
  "committer": {
    "name": "Nathan Hjelm",
    "email": "hjelmn@google.com",
    "time": "Mon Jun 07 21:25:35 2021 -0600"
  },
  "message": "Windows: Try alternative methods to query port number\n\nThis commit is similar to #634 but I think it offers a better approach. The commit adds two more methods for querying the port number, in addition to the existing SPDRP_ADDRESS method, which may not actually return the port number when using USB drivers other than the Microsoft driver.\n\nThe first method uses SPDRP_LOCATION_INFORMATION, which may return a port in a format similar to \"Port_#0002.Hub_#000D\".\n\nThe second method uses SPDRP_LOCATION_PATHS, which returns the device location in a format similar to \"PCIROOT(B2)#PCI(0300)#PCI(0000)#USBROOT(0)#USB(1)#USB(2)#USBMI(3)\", where the port number is the number within the last \"#USB()\" token.\n\nIf both methods fail, SPDRP_ADDRESS is still used as a fallback.\n\nCloses #867\n\nSigned-off-by: Nathan Hjelm \u003chjelmn@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "877a2ab3710b64dbff7fa46fe32ec06249ba6cbe",
      "old_mode": 33188,
      "old_path": "libusb/os/windows_winusb.c",
      "new_id": "e1e599c1613c3cacdc037e25fe15c5c8112bb633",
      "new_mode": 33188,
      "new_path": "libusb/os/windows_winusb.c"
    },
    {
      "type": "modify",
      "old_id": "53d05fe9f6bf6513d56d5ab6852dbe4d610b0547",
      "old_mode": 33188,
      "old_path": "libusb/version_nano.h",
      "new_id": "6524fe2b577007ef9c4886851110433c952fe950",
      "new_mode": 33188,
      "new_path": "libusb/version_nano.h"
    }
  ]
}
