)]}'
{
  "commit": "895a2a80e0e054f0d5d3715aa93d10d15e49f9f7",
  "tree": "0edff3d6c1e8261fcb43826537120cc8e297ec95",
  "parents": [
    "3b2a8b85322f3677525a65c0b35deadf45fb704b"
  ],
  "author": {
    "name": "Eric Blake",
    "email": "eblake@redhat.com",
    "time": "Mon May 04 09:05:27 2015 -0600"
  },
  "committer": {
    "name": "Markus Armbruster",
    "email": "armbru@redhat.com",
    "time": "Tue May 05 18:39:01 2015 +0200"
  },
  "message": "qapi: Use \u0027struct\u0027 instead of \u0027type\u0027 in schema\n\nReferring to \"type\" as both a meta-type (built-in, enum, union,\nalternate, or struct) and a specific type (the name that the\nschema uses for declaring structs) is confusing.  Do the bulk of\nthe conversion to \"struct\" in qapi schema, with a fairly\nmechanical:\n\nfor f in `find -name \u0027*.json\u0027; do sed -i \"s/\u0027type\u0027/\u0027struct\u0027/\"; done\n\nfollowed by manually filtering out the places where we have a\n\u0027type\u0027 embedded in \u0027data\u0027.  Then tweak a couple of tests whose\noutput changes slightly due to longer lines.\n\nI also verified that the generated files for QMP and QGA (such\nas qmp-commands.h) are the same before and after, as assurance\nthat I didn\u0027t leave in any accidental member name changes.\n\nSigned-off-by: Eric Blake \u003ceblake@redhat.com\u003e\nReviewed-by: Markus Armbruster \u003carmbru@redhat.com\u003e\nSigned-off-by: Markus Armbruster \u003carmbru@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7f4cf86ee508dedfdb47a1e76069f164b1874c25",
      "old_mode": 33188,
      "old_path": "qapi-schema.json",
      "new_id": "6a4e0dfd4f9bec7a9adcdad5853b820db14e965e",
      "new_mode": 33188,
      "new_path": "qapi-schema.json"
    },
    {
      "type": "modify",
      "old_id": "3d20e61deef35ffc4228ca1ad8eeaf26cc673e3e",
      "old_mode": 33188,
      "old_path": "qapi/block-core.json",
      "new_id": "dcf7c04ffa2ae0e3a51d0fe559ee17012152bb29",
      "new_mode": 33188,
      "new_path": "qapi/block-core.json"
    },
    {
      "type": "modify",
      "old_id": "e3134657b6746d9c27c4c56ab45ae4405e134744",
      "old_mode": 33188,
      "old_path": "qapi/block.json",
      "new_id": "aad645c4a6bf0905baeeb1f25369670de05650cb",
      "new_mode": 33188,
      "new_path": "qapi/block.json"
    },
    {
      "type": "modify",
      "old_id": "63ef3b47246eea73674675a6f1827e6fc2c2edbf",
      "old_mode": 33188,
      "old_path": "qapi/common.json",
      "new_id": "12431c691b778c3a291075df5a90bddc6f922d64",
      "new_mode": 33188,
      "new_path": "qapi/common.json"
    },
    {
      "type": "modify",
      "old_id": "06c613c21338a78c2dd45849cdeb1e2a222b1d7b",
      "old_mode": 33188,
      "old_path": "qapi/trace.json",
      "new_id": "01b0a52a7e0a078ca451bbb09f2247313bbc10bf",
      "new_mode": 33188,
      "new_path": "qapi/trace.json"
    },
    {
      "type": "modify",
      "old_id": "fecc4427d59637a31be5f3980d2bc077a501bc1c",
      "old_mode": 33188,
      "old_path": "qga/qapi-schema.json",
      "new_id": "b446dc729dc18f1f290e414bc857144cadc9931c",
      "new_mode": 33188,
      "new_path": "qga/qapi-schema.json"
    },
    {
      "type": "modify",
      "old_id": "fc0632f12887e4382e4bb673cba8bff5ebd55011",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/alternate-array.json",
      "new_id": "f241aac1220b8e542c1cb741efe355a9a2bf5a7c",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/alternate-array.json"
    },
    {
      "type": "modify",
      "old_id": "66edc89640d2319622ed5de97f2d2a078c29c0be",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/alternate-base.json",
      "new_id": "529430ecf2f26a010b4663dcb74a7c04eb4d9ff7",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/alternate-base.json"
    },
    {
      "type": "modify",
      "old_id": "fcb3e36cd9b17d5e25c3164211b10b7a415c5210",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/alternate-conflict-dict.json",
      "new_id": "d566cca8169c265ab12ceb710791c59172d72bcf",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/alternate-conflict-dict.json"
    },
    {
      "type": "modify",
      "old_id": "99d614f138d6bf024452eab81274bdce2963a30f",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/alternate-good.json",
      "new_id": "33717704ce6792916483a357e52d170ca65a7547",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/alternate-good.json"
    },
    {
      "type": "modify",
      "old_id": "a6904706ad87da10787ca1433bfd37eac4e63a1c",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/bad-base.json",
      "new_id": "a634331cdd81a453ef17839c24101a6e1dfc28b0",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/bad-base.json"
    },
    {
      "type": "modify",
      "old_id": "da949e8903554f1aa4232ba4e2977e0f0a095e89",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/bad-ident.json",
      "new_id": "763627ad23807c32c08c5d3fd1b8005225f7d74b",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/bad-ident.json"
    },
    {
      "type": "modify",
      "old_id": "e1e9fb0dde3ac75fae142ef391d2baeebc37c921",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/bad-type-bool.json",
      "new_id": "bde17b56c4cd35bca588225574555bed49a11ffb",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/bad-type-bool.json"
    },
    {
      "type": "modify",
      "old_id": "9808550007372cc7630004cba930a10b1f773dc9",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/bad-type-int.err",
      "new_id": "da8989540464397e55f0961b12637e8499c02029",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/bad-type-int.err"
    },
    {
      "type": "modify",
      "old_id": "398879df95f7b45085356b3d6bfad8d342856791",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/bad-type-int.json",
      "new_id": "56fc6f81264c5d5dd2b9d0a67e9e3d23939d43d7",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/bad-type-int.json"
    },
    {
      "type": "modify",
      "old_id": "7cce2769791659bda62485d16eafac23060551ba",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/data-member-array.json",
      "new_id": "e6f7f5da130fdaf1971c5d80ec143462d8d4ebc6",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/data-member-array.json"
    },
    {
      "type": "modify",
      "old_id": "6f1a67b907a18f17c92f2a6c6b0bfe35e300f570",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/double-data.err",
      "new_id": "cc765c4ff239218c4befcdf89f01900755ecfba5",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/double-data.err"
    },
    {
      "type": "modify",
      "old_id": "a94b7dfe225beef94c7e5130ff4bfc44dd794a6f",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/double-data.json",
      "new_id": "e76b519538ef2a9b8ee4149dd602777f32ce3476",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/double-data.json"
    },
    {
      "type": "modify",
      "old_id": "471623a2e571db4b42564d6de3d81eaff2d7a8ce",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/double-type.json",
      "new_id": "911fa7af502bf758bea5ba94cc04858ebd0eb2ca",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/double-type.json"
    },
    {
      "type": "modify",
      "old_id": "d41c80c3bdc84928c4699aeaf4c9b79d04677558",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-bad-base.json",
      "new_id": "e2e622bb6e00cd0384a1ec54fdbdbd51d6871030",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-bad-base.json"
    },
    {
      "type": "modify",
      "old_id": "982f072555c4546647df9ff495deffa6be4e32fc",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-bad-discriminator.json",
      "new_id": "cd10b9d901823cc53e28d40864508ccaafb9606a",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-bad-discriminator.json"
    },
    {
      "type": "modify",
      "old_id": "76724075b16d3f46f18b8df19e5283c85b118d57",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-base-star.json",
      "new_id": "5099439a9d9559cdb8a5009eb545ab56f438526f",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-base-star.json"
    },
    {
      "type": "modify",
      "old_id": "0ba6e28d3be4443143946a30aa71ae2aa9973fa9",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-base-union.json",
      "new_id": "6a8ea687a9ea13d42c2ce1344962673d364e3e73",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-base-union.json"
    },
    {
      "type": "modify",
      "old_id": "4091477b049d1b84bf20cbad8807805b4b4aef0a",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-branch-clash.json",
      "new_id": "8b0b807a03dcba45bdadcd5cdcef6bd2e6add659",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-branch-clash.json"
    },
    {
      "type": "modify",
      "old_id": "65c15d0a1e53b5911aa28c63c378b7a3c29321b9",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-inline.json",
      "new_id": "6bfdd65811df9d5b9ca9f7adbd5d4240cf3e05da",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-inline.json"
    },
    {
      "type": "modify",
      "old_id": "ee93cf803abf67be0fb458a0961e95a02c645240",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-int-branch.json",
      "new_id": "9370c349e8b3b2fd0248d6b5de13c065c3413e65",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-int-branch.json"
    },
    {
      "type": "modify",
      "old_id": "a6242823ed22cea9e6673e955ac8d4413cd24845",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-invalid-branch-key.json",
      "new_id": "95ff7746bfd1e20e915a2bc39b912f1aebdad56c",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-invalid-branch-key.json"
    },
    {
      "type": "modify",
      "old_id": "887157e1737ab786532012b7668337cb5900f0a0",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-invalid-discriminator.json",
      "new_id": "48b94c3a4d3e668fcca710c461ba63417d3a90ce",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-invalid-discriminator.json"
    },
    {
      "type": "modify",
      "old_id": "9547bb8988d8fbf8a275b93cc13d86f9168bac4a",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-no-base.json",
      "new_id": "ffc4c6f0e6445552c2fc60dd7ddcf9b94234e4aa",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-no-base.json"
    },
    {
      "type": "modify",
      "old_id": "25ce0e661247aa55aaac9a045e4d1c3961ad2f91",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-optional-discriminator.json",
      "new_id": "08a8f7ef8bcbe76e566387ab0a0cab5136d4efed",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-optional-discriminator.json"
    },
    {
      "type": "modify",
      "old_id": "9ea7e722011da60888d396fca2039a7a628d5773",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-reverse-define.json",
      "new_id": "648bbfe2b7f5fbf00e2f12f412152c6e35f30bb6",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-reverse-define.json"
    },
    {
      "type": "modify",
      "old_id": "e966aeb395d75de549262a8540dd0b4c69aa8f6c",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/flat-union-string-discriminator.json",
      "new_id": "8af60333b60f4f9ed89e8a5c3bab9542e0e9fb12",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/flat-union-string-discriminator.json"
    },
    {
      "type": "modify",
      "old_id": "dec8a7c108e6c2e5708c50a79fe869d09a63221a",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/qapi-schema-test.json",
      "new_id": "f10efe2e2f1fd16f3053002a84834b41fe38d0e3",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/qapi-schema-test.json"
    },
    {
      "type": "modify",
      "old_id": "df328ccc6622fc3b6e0b1042eef9230f99eddcd4",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/redefined-builtin.json",
      "new_id": "45b8a550ad8d133fb7dea8516357aeb22df1a0ba",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/redefined-builtin.json"
    },
    {
      "type": "modify",
      "old_id": "e6a5f24ca98b4231f50f572595efd5b1de8c96ec",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/redefined-type.json",
      "new_id": "a09e768baeb5e6c3ec73b8f35e6d6009159c7615",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/redefined-type.json"
    },
    {
      "type": "modify",
      "old_id": "4303666bb505d9e30fae44b4354d3530b0467093",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/union-bad-branch.json",
      "new_id": "913aa38bc85209023d50bea27f2990acf6e18898",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/union-bad-branch.json"
    },
    {
      "type": "modify",
      "old_id": "052596c46ee1849e321bca9b29b50727447c3ed3",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/union-base-no-discriminator.json",
      "new_id": "1409cf5c9e0c2ce851f2b917d8ce62bc292ae330",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/union-base-no-discriminator.json"
    },
    {
      "type": "modify",
      "old_id": "bc5dc8d043ba438668f2c257d7328235b7d1bb75",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/union-invalid-base.json",
      "new_id": "92be39df69ae7fce191f5113fb82f2be3fd80157",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/union-invalid-base.json"
    },
    {
      "type": "modify",
      "old_id": "ba7bdf3ed6699482ec3971891e8d097217046727",
      "old_mode": 33188,
      "old_path": "tests/qapi-schema/unknown-expr-key.json",
      "new_id": "3b2be00cc49794c9d3ffea8d3020e7399efe5a6a",
      "new_mode": 33188,
      "new_path": "tests/qapi-schema/unknown-expr-key.json"
    }
  ]
}
