)]}'
{
  "commit": "28d6034185ab9e2a7f6085659b2a8e30facf5b1f",
  "tree": "11d4ab50a6f278070fdb1ca12945864ccdf9c367",
  "parents": [
    "9b26156bbb5d53502fbde82ac43464062228d59a"
  ],
  "author": {
    "name": "Matt",
    "email": "msta@google.com",
    "time": "Fri May 31 17:30:03 2024 +1000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri May 31 07:30:03 2024 +0000"
  },
  "message": "fix: Fix a bug in globs when middle is non-empty, but right is empty. (#516)\n\nFor example, if you try to match `*a*` against `ab`, then we check:\r\n```\r\nleft \u003d \"\"\r\nmiddle \u003d \"a\"\r\nright \u003d \"\"\r\nmiddle in name[len(left):len(name)-len(right)]:\r\n\"a\" in \"ab\"[len(\"\"):len(name)-len(\"\")]:\r\n\"a\" in \"ab\"[0:-0]\r\n\"a\" in \"\" \u003d\u003e False\r\n```\r\n\r\nThe problem here is that negative numbers in python index from the back, but -0 is not a negative number, so it always results in the empty string.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "884ab649dca15fd4616025757d3ffeaefd6bf99c",
      "old_mode": 33188,
      "old_path": "rules/directory/private/glob.bzl",
      "new_id": "df96444699d7e7a9cc1cadfd1943f2ca139490a3",
      "new_mode": 33188,
      "new_path": "rules/directory/private/glob.bzl"
    },
    {
      "type": "modify",
      "old_id": "1d4bbfe39d6cab49b9c0c76d0b71e088f5808bcc",
      "old_mode": 33188,
      "old_path": "tests/directory/glob_test.bzl",
      "new_id": "db6018ed51d9b234728118da2222604be37c2162",
      "new_mode": 33188,
      "new_path": "tests/directory/glob_test.bzl"
    }
  ]
}
