)]}'
{
  "commit": "e1ac69b17da0c6d4f5e34e686690ff70c6a43e6f",
  "tree": "39380a1634601f17e548fdb3deb0b5876f63a9a5",
  "parents": [
    "7b2a04d5b451e2ccf5494c2edd113d7b29b8da09"
  ],
  "author": {
    "name": "Honglin Yu",
    "email": "honglinyu@chromium.org",
    "time": "Sun Oct 11 00:15:15 2020 +1100"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Tue Oct 20 04:53:59 2020 +0000"
  },
  "message": "Add a command line to define/overwrite \"root\" in \".gn\"\n\nThe new command line option \"--root-target\" will tell GN where to find\nthe initial BUILD.gn. This is equivalent to define the \"root\" variable\nin \".gn\" as before. And after this CL if \"root\" is also defined in\n\".gn\", this option will overwite the value defined in \".gn\".\n\nThis is to achieve, to some extend, the \"partial configuration\"\nability. For example, if we only want to configure and build the\ntargets in a subfolder of Chromium like \"//third_party/icu\". We only\nneed to run\n\n```\ngn gen out/icu --root-target\u003d\"//third_party/icu\"\n```\n\nThe motivation of this feature is to make sharing packages between\nChrome and CrOS much easier.\n\nBUG\u003dchromium:1133101\nTEST\u003dIt can indeed only configure subfolder of chromium like\nTEST\u003d\"third_party/icu\" and \"third_party/grpc\".\nTEST\u003dIt can overwrite the \"root\" variable in \".gn\" correctly.\n\nChange-Id: If0742b409a529f34f435c6498de57667fabe7fc1\nReviewed-on: https://gn-review.googlesource.com/c/gn/+/10140\nReviewed-by: Brett Wilson \u003cbrettw@chromium.org\u003e\nCommit-Queue: Brett Wilson \u003cbrettw@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d1ba19703f4c4c8f8fcc8bbf830d3148169d371d",
      "old_mode": 33188,
      "old_path": "src/gn/setup.cc",
      "new_id": "15352769d2a6d08a420ba4efab11da2677ff92e6",
      "new_mode": 33188,
      "new_path": "src/gn/setup.cc"
    },
    {
      "type": "modify",
      "old_id": "2b42e13ee9b9dc183a95261259de7b37641e1f31",
      "old_mode": 33188,
      "old_path": "src/gn/switches.cc",
      "new_id": "b94bc47d54c7f62ef4438b51767aa2bc97379d08",
      "new_mode": 33188,
      "new_path": "src/gn/switches.cc"
    },
    {
      "type": "modify",
      "old_id": "69c47b66399269c25cce1e83a56635657cbc2cf7",
      "old_mode": 33188,
      "old_path": "src/gn/switches.h",
      "new_id": "2f89e500f14c6378b6d10a23ee9fc3614a836c35",
      "new_mode": 33188,
      "new_path": "src/gn/switches.h"
    }
  ]
}
