)]}'
{
  "commit": "00b741b1568d56cf4e117dcb9f70cd42653b4c78",
  "tree": "2160e4ef267f605ffce60fac75d2e3fd405fc956",
  "parents": [
    "5705e56a0e5856621415cfdf444432554e72c9c9"
  ],
  "author": {
    "name": "David \u0027Digit\u0027 Turner",
    "email": "digit@google.com",
    "time": "Tue Aug 30 13:35:07 2022 +0200"
  },
  "committer": {
    "name": "GN LUCI",
    "email": "gn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed Aug 31 09:38:38 2022 +0000"
  },
  "message": "Do not remove build.ninja.d during `gn clean`\n\nCalling `gn clean` would remove the `build.ninja.d` file\nunexpectedly, which resulted in the nexty `gn clean` call\nto fail with a \"This does not look like a build directory\" error.\n\nThe reason for this is a recent change [1] which modified how\nthe dummy `build.ninja` and `build.ninja.d` files generated\nby `gn clean` (to force a regeneration on the next Ninja invocation)\nare written:\n\n- Before the CL, the code removed everything except `args.gn`, then\n  wrote the dummy `build.ninja` and `build.ninja.d`.\n\n- After the CL, the code wrote `build.ninja` and `build.ninja.d`,\n  then removed everything except `args.gn` and `build.ninja`\n  (this removing the just-written `build.ninja.d` file).\n\nThis fixes the issue by ensuring that `build.ninja.d` is not\nremoved. Moreover, this relaxes the build directory check logic\na little, by accepting a directory that only contains an `args.gn`\nfile, without a `build.ninja.d` file in it.\n\n[1] https://gn-review.googlesource.com/c/gn/+/14200\n\nBug: None\n\nChange-Id: Ie06ab751bed5a749a63bf200b50424abdcf0fdcf\nReviewed-on: https://gn-review.googlesource.com/c/gn/+/14500\nReviewed-by: Takuto Ikuta \u003ctikuta@google.com\u003e\nCommit-Queue: David Turner \u003cdigit@google.com\u003e\nReviewed-by: Petr Hosek \u003cphosek@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e6c52fcecbfaaabbe464cd384c51e3c8e309015e",
      "old_mode": 33188,
      "old_path": "src/gn/command_clean.cc",
      "new_id": "6dcc163149645e11902ea66453df8e1bedd96c8a",
      "new_mode": 33188,
      "new_path": "src/gn/command_clean.cc"
    }
  ]
}
