)]}'
{
  "commit": "6515f65e07a2312f3b035bed56933aaf5a8b36b4",
  "tree": "3ea3db817094116227ddcf6fb3c00b1687675870",
  "parents": [
    "cbe7f7bc08cd0a09142500e52a21c3c0cd28c019"
  ],
  "author": {
    "name": "Patrick Hiesel",
    "email": "hiesel@google.com",
    "time": "Fri Apr 23 16:41:05 2021 +0200"
  },
  "committer": {
    "name": "Patrick Hiesel",
    "email": "hiesel@google.com",
    "time": "Wed Apr 28 10:59:58 2021 +0200"
  },
  "message": "Only inspect diffs when checking files for keywords\n\nWe previously checked which files were modified and then loaded all\nof the file contents of these files and checked them against keywords.\n\nThis commit makes it so that we only inspect the Git diff which has\nthe advantage that we are not rejecting pushes that don\u0027t contain\nkeywords themselves but modify files that do.\n\nWe inspect the right side of the diff, so only text that is added by\nthe commit we inspect.\n\nThis improvement is not gated by a config paramter because it seems\nuniversally useful to existing installations.\n\nFuture improvements could make the logic only inspect intraline diffs.\n\nThis diffing will not add latency to a \u0027git push\u0027 validated by this\nplugin because we use the diff cache that is triggered anyway\nduring a git push in a later stage of processing.\n\nChange-Id: I7892039c8dfe1fc4ca90cf47012753e1fee5ee89\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8b8b244f2a5494ea09a56c3acfc4c445f47b3073",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/BlockedKeywordValidator.java",
      "new_id": "ef66c330929d5e1daa62b1ac01112a4ca5966347",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/BlockedKeywordValidator.java"
    },
    {
      "type": "modify",
      "old_id": "7c1cc23dd6625195cca80dd2e59da93233421bf3",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/config.md",
      "new_id": "aa7b0cfc8e8ee06566a2da94623c03f8ec0f9c21",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/config.md"
    },
    {
      "type": "modify",
      "old_id": "c7096224af3df9b772114bd7ba7ec56077488f44",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/BlockedKeywordValidatorTest.java",
      "new_id": "245f2dc16b6d06f696f801a0c4c790b4cdc1cb52",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/BlockedKeywordValidatorTest.java"
    },
    {
      "type": "modify",
      "old_id": "cafc18cec640dc090093e9fecbcaf05ca82b73c0",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/UploadValidatorIT.java",
      "new_id": "bee54186492b963c887e1d42bbc6c9e9fd8fce18",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/uploadvalidator/UploadValidatorIT.java"
    }
  ]
}
