)]}'
{
  "commit": "efe7aca78d6b319e42e221876f8cc92c7270ceba",
  "tree": "f551f001c37a7b4b976240542abfe20759cee4ae",
  "parents": [
    "010daed12ddf2a7d4f8c87342a8f5ca7191bb12f"
  ],
  "author": {
    "name": "Colby Ranger",
    "email": "cranger@google.com",
    "time": "Fri May 10 09:21:24 2013 -0700"
  },
  "committer": {
    "name": "Shawn Pearce",
    "email": "sop@google.com",
    "time": "Fri May 17 16:57:56 2013 -0700"
  },
  "message": "Add the revision diff REST API implementation.\n\nA revision diff shows the contents of a file diff\u0027d against\na base revision.  The \"content\" key in the root object contains\nan array of objects where there is:\n  \"ab\" for common lines to both sides\n   only \"a\" when lines were deleted in \"b\"\n   only \"b\" when lines were inserted in \"b\"\n   \"a\" and \"b\" when the lines were replaced\n   skip line count when the file is too large to show all common lines\n\nIf the url parameter \"intraline\" is specified.  Replaced regions may\nalso contain an \"edit_a\" and \"edit_b\" list of \u003coffset, length\u003e pairs,\nfrom the begining of the region. edit_a represents deleted text sections\nand edit_b represents insterted text sections. Note, the implied newline\ncharacter is included in the offset position.\n\nWhitespace behavior can be controlled via the \"ignore-whitespace\" URL\nparameter. Also, # of lines of surrounding context can be control\nvia the \"context\" URL parameter.\n\nPatchScript was updated to include the calculated content type of the\nfile, which is exposed in the meta_[a|b] field of the root object.\n\nPatchScriptFactory was refactored to take the ChangeControl, due to\nscoping issues in the REST API. Furthermore, Patch.Key was replaced by\nfileName.  The Git patch diff header was updated to not include the\ntrailing newline.\n\nTODO: improve the content-type detection, since it returns\n\"application/octet-stream\" more often than it should.\n\nChange-Id: I96a6e0d569f3ecf24c5529dc706ae85c61bfb699\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fecbb7656ce171ccc9e1e516e7b03254a7aa9703",
      "old_mode": 33188,
      "old_path": "gerrit-common/src/main/java/com/google/gerrit/common/data/PatchScript.java",
      "new_id": "914e69f0bda105f534217295149b703a29f1ab85",
      "new_mode": 33188,
      "new_path": "gerrit-common/src/main/java/com/google/gerrit/common/data/PatchScript.java"
    },
    {
      "type": "modify",
      "old_id": "756cb161c306b6e501ccf39c7aa4f82cee6508e3",
      "old_mode": 33188,
      "old_path": "gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/patch/PatchDetailServiceImpl.java",
      "new_id": "12289aa35f85a521f02f40142f9e5c1c20f8b5d8",
      "new_mode": 33188,
      "new_path": "gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/patch/PatchDetailServiceImpl.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ac2d8badbb893fe191b76b315868c5332e33d0b6",
      "new_mode": 33188,
      "new_path": "gerrit-server/src/main/java/com/google/gerrit/server/change/GetDiff.java"
    },
    {
      "type": "modify",
      "old_id": "e088e4b69b5d3825d28f130ba053d9d2aea177e7",
      "old_mode": 33188,
      "old_path": "gerrit-server/src/main/java/com/google/gerrit/server/change/Module.java",
      "new_id": "4c87d98070ccb56d18703a38d260d593be79af6f",
      "new_mode": 33188,
      "new_path": "gerrit-server/src/main/java/com/google/gerrit/server/change/Module.java"
    },
    {
      "type": "modify",
      "old_id": "ff9e6cf9ff7705a6975175e5a54500959713b9de",
      "old_mode": 33188,
      "old_path": "gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchListEntry.java",
      "new_id": "852165c28c015f8a5d044c5b9331a0c4f4bb5cd1",
      "new_mode": 33188,
      "new_path": "gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchListEntry.java"
    },
    {
      "type": "modify",
      "old_id": "eaa5e75998f813741384fbf5d7d37634c58beefc",
      "old_mode": 33188,
      "old_path": "gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchScriptBuilder.java",
      "new_id": "e74d5a192fedcf7cd444c536fd67fecf9e6691cc",
      "new_mode": 33188,
      "new_path": "gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchScriptBuilder.java"
    },
    {
      "type": "modify",
      "old_id": "e700f1450fa40d9942b63055f0440fe7f7524823",
      "old_mode": 33188,
      "old_path": "gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchScriptFactory.java",
      "new_id": "b46f1e76640cb3733f56f17e0de955d44687fdc8",
      "new_mode": 33188,
      "new_path": "gerrit-server/src/main/java/com/google/gerrit/server/patch/PatchScriptFactory.java"
    }
  ]
}
