)]}'
{
  "commit": "9edc1950d3c0a3717cefda1688a4c37e7fc652fb",
  "tree": "97277e631225217766bf61cccfc3eaac16a1ad1f",
  "parents": [
    "ec349d12a0b52280a48a66d4c5adf20f900c2393"
  ],
  "author": {
    "name": "David Pursehouse",
    "email": "dpursehouse@collab.net",
    "time": "Thu May 09 12:37:05 2019 +0900"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Thu May 09 07:38:32 2019 +0100"
  },
  "message": "GerritVersionBranch: Fix branch detection for 3.0.0-rcx versions\n\nThe detection assumes that any version string that includes \"-\" in\nthe \u0027minor\u0027 version is a git describe generated version, such as:\n\n  2.16.8-17-gc8b633d5ce\n\nand treats it as the \u0027next\u0027 version. This logic does not take into\naccount that the latest release version 3.0.0 has the explicit trailing\n\".0\" on it, so the version \"3.0.0-rc3\" is parsed incorrectly and \"master\"\nis returned.\n\nChange the condition to check for \"-g\" instead, since \"g\" is always\nincluded before the abbreviated sha1 in a git describe version.\n\nAdd tests to confirm that it behaves as expected for various forms\nof version string.\n\nChange-Id: Ifab49a4d3985acce0dbdcbe54d89460bd7c3f027\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e138e92727d63e2d63271de02a3b2364458d5d3c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/manager/GerritVersionBranch.java",
      "new_id": "11a13bfb2a6955541721d5f8829a1b5afa68f594",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/manager/GerritVersionBranch.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8ab2fd47567594b7b0a7c57421acb90880388619",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/manager/GerritVersionBranchTest.java"
    }
  ]
}
