)]}'
{
  "commit": "efecf8cdf4c0386f162138ced3823526ff50e968",
  "tree": "2628ca332108f7cfeb9abf7773ce169260170204",
  "parents": [
    "6515f65e07a2312f3b035bed56933aaf5a8b36b4"
  ],
  "author": {
    "name": "Patrick Hiesel",
    "email": "hiesel@google.com",
    "time": "Tue May 04 10:28:35 2021 +0200"
  },
  "committer": {
    "name": "Patrick Hiesel",
    "email": "hiesel@google.com",
    "time": "Tue May 04 10:52:31 2021 +0200"
  },
  "message": "Default to full-file evaluation if diffs are not available\n\nGerrit\u0027s diff cache reads objects using a self-created\nObjectReader without an option to pass in a RevWalk or an\nObjectReader instance.\n\nThis works for \u0027git push\u0027 where the commit we want to validate\nhas already been written to disk, but fails for REST endpoints\nwhere the ObjectInserter has not been flushed yet when the\nCommitValidators are called. Hence, the diff cache can\u0027t see\nthe objects it should diff.\n\nThere are multiple options to fix this, but no golden way. To\nunblock users of the plugin, we default back to full-file\nevaluation if diffs aren\u0027t available. We\u0027ll adapt Gerrit\ncore to be able to use diffs in the currently broken cases\nas well. Options we are eyeballing include:\n\n1) Pass an ObjectInserter/Reader to PatchListCache\n2) Make Repository aware of open ObjectInserters\n3) Adapt CreateChange to flush twice\n\nChange-Id: Ic9ac19e8913243c7d78e971a300f52dffe983743\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ef66c330929d5e1daa62b1ac01112a4ca5966347",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/BlockedKeywordValidator.java",
      "new_id": "64ce6ab34538350151c79d3c95d1895e37164588",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/BlockedKeywordValidator.java"
    },
    {
      "type": "modify",
      "old_id": "bee54186492b963c887e1d42bbc6c9e9fd8fce18",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/UploadValidatorIT.java",
      "new_id": "bd5f8f3405c3c213d85f60039b80c9ee41c1551b",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/UploadValidatorIT.java"
    }
  ]
}
