)]}'
{
  "commit": "559132d8fd699f2a52c8f5d744cf6b29f1fc47d0",
  "tree": "046dc349f8da3516d009562e75f5ec6a499a56a6",
  "parents": [
    "5e549c72db28e2a1c45b3f05ef5552de0b0e95df"
  ],
  "author": {
    "name": "Prudhvi Akhil Alahari",
    "email": "prudhvi@codeaurora.org",
    "time": "Tue Sep 28 18:27:44 2021 +0530"
  },
  "committer": {
    "name": "Prudhvi Akhil Alahari",
    "email": "prudhvi@codeaurora.org",
    "time": "Thu Oct 28 22:40:35 2021 +0530"
  },
  "message": "Add REST endpoint for commits included in refs\n\nAdd a REST endpoint /projects/{project-name}/commits:in which gets refs\nin which the specified commits were merged into. Takes commit and ref\nas query parameters and returns a map of commits to set of full ref\nnames. Gerrit has an ../commits/{commit-id}/in API which returns all\nbranches and tags the commit is part of. But ../commits/{commit-id}/in\nAPI is less performant if the caller is only interested in a specific\nref(s) and the API is limited to branches and tags.\n\nSince the commits:in API has a specific list of input refs, the\ncommits:in API is exposed at /projects/{project-name}/ level instead\nof /projects/{project-name}/commits/{commit-id}/ so as to avoid checking\nthe reachability of a commit twice (once in commits:in and once in\nCommitsCollection). Exposing the commits:in API at /projects/{project-\nname}/ level allows the API to take more than one commit. Adds\nacceptance tests and documentation.\n\nChange-Id: I756c55f87a203cc6693ada300c8441cfed15c9c8\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "92c6dbf13ccd7e2b2dc43324b151c6567b7d194c",
      "old_mode": 33188,
      "old_path": "Documentation/rest-api-projects.txt",
      "new_id": "2d5451872c47fecaa2f838d14461e82d20610cb2",
      "new_mode": 33188,
      "new_path": "Documentation/rest-api-projects.txt"
    },
    {
      "type": "modify",
      "old_id": "987399501c2e4f88cc26c2d357b49f030a79107b",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/extensions/api/projects/ProjectApi.java",
      "new_id": "59475a46dd9b346626a67a4611c03df4f15bd12a",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/extensions/api/projects/ProjectApi.java"
    },
    {
      "type": "modify",
      "old_id": "6d7fc15d401395acc20c8673b2f4b65549e4fd97",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/server/api/projects/ProjectApiImpl.java",
      "new_id": "9521759cce31c0b82c4b79176ea3b40ec298a06a",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/server/api/projects/ProjectApiImpl.java"
    },
    {
      "type": "modify",
      "old_id": "7f70c6d83dc2e4a7d34489b1388204dd9a89bbd9",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/server/change/IncludedIn.java",
      "new_id": "94498d7f49b0bfe5e66ae5573481024d02c0649a",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/server/change/IncludedIn.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f06925129c8b236df31d8f022523836f721e5d10",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/server/change/IncludedInRefs.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6f75e0f40220f73d7ef8bcd154e453a866910a21",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/server/change/IncludedInUtil.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "05ec28ee141f0b29885e87a1bc175e0ef22f5df4",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/server/restapi/project/CommitsIncludedInRefs.java"
    },
    {
      "type": "modify",
      "old_id": "410a88c8e73ed94c173f61c7a19e35de80763636",
      "old_mode": 33188,
      "old_path": "java/com/google/gerrit/server/restapi/project/ProjectRestApiModule.java",
      "new_id": "e50a494922eba0696cfc128b35223955661d514f",
      "new_mode": 33188,
      "new_path": "java/com/google/gerrit/server/restapi/project/ProjectRestApiModule.java"
    },
    {
      "type": "modify",
      "old_id": "c42628c9db05a4da44de6617d4e029045d67619d",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gerrit/acceptance/api/project/ProjectIT.java",
      "new_id": "6b2f4f14e43eced0af02440a5ad5ec605bb1f655",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gerrit/acceptance/api/project/ProjectIT.java"
    }
  ]
}
