)]}'
{
  "commit": "894143c30d98b981fbfd2b91a3bd877c96b70ded",
  "tree": "3de7c54f04b38ada4efabeb0fcb608f8cf9c5431",
  "parents": [
    "45314e29d54cc2e4a6501eaec860f1b09740eb9c"
  ],
  "author": {
    "name": "Scott Graham",
    "email": "scottmg@chromium.org",
    "time": "Mon Jan 07 13:56:49 2019 -0800"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Tue Jan 08 02:46:43 2019 +0000"
  },
  "message": "format: Fix incorrect dewrap of `if`\n\nWhen `if (...stuff...) {` was exactly 81 characters, it would be\nincorrectly wrapped because the trailing { wasn\u0027t being taken into\naccount in penalizing single line formatting.\n\nTo avoid this, pass the full suffix into the child formatter.\n\nIn a Chromium tree, diffing\n\n  gn ls-files \u0027*.gn\u0027 \u0027*.gni\u0027 | xargs -l1 gn format\n\nvs.\n\n  gn ls-files \u0027*.gn\u0027 \u0027*.gni\u0027 | xargs -l1 /work/gn/out/gn format\n\nresults in\nhttps://gist.github.com/sgraham/2e33ae36db6255af0be0785ea3d0b058\n\nwhich are all 81 character long if statements being fixed.\n\nBug: gn:36\n\nChange-Id: I5af9a62a3de4953ea0d60a85bd558281410a8f09\nReviewed-on: https://gn-review.googlesource.com/c/3621\nReviewed-by: Nico Weber \u003cthakis@chromium.org\u003e\nReviewed-by: Petr Hosek \u003cphosek@google.com\u003e\nCommit-Queue: Scott Graham \u003cscottmg@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "483a24cb399a12dfd1e83f7fecceb2354982ec8e",
      "old_mode": 33188,
      "old_path": "tools/gn/command_format.cc",
      "new_id": "0f7b7b2e9a294976dd63023947798065b0d79d9c",
      "new_mode": 33188,
      "new_path": "tools/gn/command_format.cc"
    },
    {
      "type": "modify",
      "old_id": "db63a8c7733c8cbbbca2a8113c2021de4f5fc52b",
      "old_mode": 33188,
      "old_path": "tools/gn/command_format_unittest.cc",
      "new_id": "f5e0c353bdd90115a1d34a335c7514fda69cf54f",
      "new_mode": 33188,
      "new_path": "tools/gn/command_format_unittest.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d5e5101ff59bae3f39d07f37adfb18048b7f4f6b",
      "new_mode": 33188,
      "new_path": "tools/gn/format_test_data/074.gn"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d5e5101ff59bae3f39d07f37adfb18048b7f4f6b",
      "new_mode": 33188,
      "new_path": "tools/gn/format_test_data/074.golden"
    }
  ]
}
