)]}'
{
  "commit": "912ae9c88669d0a0cbae1f20b8c80dde8e526251",
  "tree": "628d4425755469fb889b78fe917c7fe3eb64129f",
  "parents": [
    "606ee8f5eadd79627216bbdde4da0337cb7d4360"
  ],
  "author": {
    "name": "Michael S. Tsirkin",
    "email": "mst@redhat.com",
    "time": "Thu Feb 19 11:13:10 2015 +0100"
  },
  "committer": {
    "name": "Luiz Capitulino",
    "email": "lcapitulino@redhat.com",
    "time": "Mon Feb 23 11:00:05 2015 -0500"
  },
  "message": "qapi-types: add C99 index names to arrays\n\nIt\u0027s not easy to figure out how monitor translates\nstrings: most QEMU code deals with translated indexes,\nthese are translated using _lookup arrays,\nso you need to find the array name, and find the\nappropriate offset.\n\nThis patch adds C99 indexes to lookup arrays, which makes it possible to\nfind the correct key using simple grep, and see that the matching is\ncorrect at a glance.\n\nExample:\n\nBefore:\n\nconst char *MigrationCapability_lookup[] \u003d {\n    \"xbzrle\",\n    \"rdma-pin-all\",\n    \"auto-converge\",\n    \"zero-blocks\",\n    NULL,\n};\n\nAfter:\n\nconst char *MigrationCapability_lookup[] \u003d {\n    [MIGRATION_CAPABILITY_XBZRLE] \u003d \"xbzrle\",\n    [MIGRATION_CAPABILITY_RDMA_PIN_ALL] \u003d \"rdma-pin-all\",\n    [MIGRATION_CAPABILITY_AUTO_CONVERGE] \u003d \"auto-converge\",\n    [MIGRATION_CAPABILITY_ZERO_BLOCKS] \u003d \"zero-blocks\",\n    [MIGRATION_CAPABILITY_MAX] \u003d NULL,\n};\n\nSigned-off-by: Michael S. Tsirkin \u003cmst@redhat.com\u003e\nReviewed-by: Eric Blake \u003ceblake@redhat.com\u003e\nSigned-off-by: Luiz Capitulino \u003clcapitulino@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1eb272dd2644a51669752bcae9cb84bb2ea3440f",
      "old_mode": 33188,
      "old_path": "scripts/qapi-types.py",
      "new_id": "db872180c6591cbb6931bb003a73bba3eafa8054",
      "new_mode": 33188,
      "new_path": "scripts/qapi-types.py"
    }
  ]
}
