)]}'
{
  "commit": "2ecd43a10266bd091c98e6dcde507c64f6a0dad3",
  "tree": "9ec4090ac10f9d944c1d5c6f1c3aea22945cab08",
  "parents": [
    "fd6cae41bd7d5d255dc2fb96004a8bf74ac9d972"
  ],
  "author": {
    "name": "Evangelos Foutras",
    "email": "evangelos@foutrelis.com",
    "time": "Wed Jun 08 15:39:49 2022 +0300"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Wed Jun 08 14:38:50 2022 +0000"
  },
  "message": "Simplify source_dir_path substring extraction\n\nInstead of checking if \u0027source_dir_path\u0027 is longer than \u0027build_dir\u0027\nbefore using the latter\u0027s length as an index into the first string,\nswitch to calling the subsrt() method of the former. This correctly\nhandles the case of both strings having the same length while being\nclearer about its intended function.\n\nBug: 293\nFixes: fd6cae41bd7d (\"Avoid out-of-bounds string indexing\")\nChange-Id: I46d29efb579b70eec47e32004347ebfccc56430e\nReviewed-on: https://gn-review.googlesource.com/c/gn/+/14120\nCommit-Queue: Sylvain Defresne \u003csdefresne@chromium.org\u003e\nReviewed-by: Sylvain Defresne \u003csdefresne@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0f984a7ea6628ec4d9ce798ef58a9519bba5655f",
      "old_mode": 33188,
      "old_path": "src/gn/filesystem_utils.cc",
      "new_id": "d0a1ee0edf2f1e65bf3305500df32f33d3e4b068",
      "new_mode": 33188,
      "new_path": "src/gn/filesystem_utils.cc"
    }
  ]
}
