)]}'
{
  "commit": "f4d63683a04af139b54a5887f220c4768b09fdde",
  "tree": "4d39ac08b04f25a99bf320f1a70daf60e64ed60e",
  "parents": [
    "289f1cb5dd01ea79abd5bcc9f6922bb75236b8a0"
  ],
  "author": {
    "name": "Henrique Ferreiro",
    "email": "hferreiro@igalia.com",
    "time": "Wed Nov 18 00:03:52 2026 +0100"
  },
  "committer": {
    "name": "gn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "gn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Mon Nov 23 19:08:56 2026 -0800"
  },
  "message": "Make \"/C:/\u003csource root\u003e\" source-relative on Windows\n\nMakeAbsolutePathRelativeIfPossible() handles Windows paths written as\n\"C:/foo\" and \"/C:/foo\" in separate branches. The \"/C:/foo\" one offsets\nits indices by one for the leading slash, but since\nhttps://gn-review.googlesource.com/c/gn/+/5680 its check for a path\nequal to the source root applies the offset to the wrong length, so it\nnever matches: \"/C:/src\" used as a directory in a build file resolved\nto \"/C:/src/\" instead of \"//\" with source root \"C:/src\".\n\nFix it by dropping the leading slash of \"/C:/foo\" paths first, so that\nthey line up with the source root like \"C:/foo\" paths and need no\noffset. Both forms then go through the same code, including the\nequality check that already worked for \"C:/foo\". Also share the rest of\nthe function with POSIX, which leaves only the prefix comparison\nplatform-specific.\n\nChange-Id: I22c1122a5c0b8e7de2e7235ac8667590d548b32e\nReviewed-on: https://gn-review.googlesource.com/c/gn/+/28960\nCommit-Queue: Takuto Ikuta \u003ctikuta@google.com\u003e\nReviewed-by: Takuto Ikuta \u003ctikuta@google.com\u003e\nReviewed-by: Sylvain Defresne \u003csdefresne@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a95a41a6bab8a86442659bcc0b2616447516367b",
      "old_mode": 33188,
      "old_path": "src/gn/filesystem_utils.cc",
      "new_id": "ae4dfb4649cd5199b580dda6d920774f0733f4ca",
      "new_mode": 33188,
      "new_path": "src/gn/filesystem_utils.cc"
    },
    {
      "type": "modify",
      "old_id": "f533bde9b72939c922a554ed8f358aebc2eff1fb",
      "old_mode": 33188,
      "old_path": "src/gn/filesystem_utils_unittest.cc",
      "new_id": "7c4754e9a8b10de4dc49eaf009d138f021fcc25d",
      "new_mode": 33188,
      "new_path": "src/gn/filesystem_utils_unittest.cc"
    }
  ]
}
