)]}'
{
  "commit": "173bbb754f53e8bfc8e4d488f2ed66fe1072ed69",
  "tree": "d807452d835e39e512a5784c1f773b877fbe4a6b",
  "parents": [
    "2d496105397b8eca905f9a53c40e2faaac7bfa6b"
  ],
  "author": {
    "name": "Michael Roth",
    "email": "mdroth@linux.vnet.ibm.com",
    "time": "Mon Apr 30 09:33:30 2012 -0500"
  },
  "committer": {
    "name": "Andreas Färber",
    "email": "afaerber@suse.de",
    "time": "Fri Jun 08 16:11:14 2012 +0200"
  },
  "message": "qapi: String visitor, use %f representation for floats\n\nCurrently string-output-visitor formats floats as %g, which is nice in\nthat trailing 0\u0027s are automatically truncated, but otherwise this causes\nsome issues:\n\n - it uses 6 significant figures instead of 6 decimal places, which\n   means something like 155777.5 (which even has an exact floating point\n   representation) will be rounded to 155778 when converted to a string.\n\n - output will be presented in scientific notation when the normalized\n   form requires a 10^x multiplier. Not a huge deal, but arguably less\n   readable for command-line arguments.\n\n - due to using scientific notation for numbers requiring more than 6\n   significant figures, instead of hard-defined decimal places, it\n   fails a lot of the test-visitor-serialization unit tests for floats.\n\nInstead, let\u0027s just use %f, which is what the QJSON and the QMP visitors\nuse.\n\nSigned-off-by: Michael Roth \u003cmdroth@linux.vnet.ibm.com\u003e\nSigned-off-by: Andreas Färber \u003cafaerber@suse.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "92b03052127b668828af758f05b8d6fcaeea3001",
      "old_mode": 33188,
      "old_path": "qapi/string-output-visitor.c",
      "new_id": "34e525eadd00bb3e2c148804ee47966734bb1e30",
      "new_mode": 33188,
      "new_path": "qapi/string-output-visitor.c"
    },
    {
      "type": "modify",
      "old_id": "22909b84efe483c7fcca4a5b812d92573b00f637",
      "old_mode": 33188,
      "old_path": "tests/test-string-output-visitor.c",
      "new_id": "608f14a5deb313edde6977af9cc876b9e407ffe2",
      "new_mode": 33188,
      "new_path": "tests/test-string-output-visitor.c"
    }
  ]
}
