)]}'
{
  "commit": "4f55186fdbf7427403187ca4917e5e90c8c77319",
  "tree": "20cb9a417d496ad1ce4c7b5f5d846b75a44815b0",
  "parents": [
    "a1b6c107023d93f825dd61b667786761d3114091"
  ],
  "author": {
    "name": "Damien Neil",
    "email": "dneil@google.com",
    "time": "Wed Jun 24 09:47:15 2026 -0700"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Thu Aug 27 10:14:36 2026 -0700"
  },
  "message": "unicode/norm: simplify short source detection in Form.transform\n\nForm.transform returns ErrShortSrc when not all source bytes\nhave been processed:\n\n\tif err \u003d\u003d nil \u0026\u0026 n \u003c rb.nsrc \u0026\u0026 !atEOF {\n\t\terr \u003d transform.ErrShortSrc\n\t}\n\nSimplify this check to check whether all bytes in src have been\nprocessed (in which case the Transformer interface says we need\nto return ErrShortSrc):\n\n\tif err \u003d\u003d nil \u0026\u0026 nSrc \u003c rb.nsrc {\n\t\terr \u003d transform.ErrShortSrc\n\t}\n\nThis change has no actual practical effect.\n\nChanging n (number of bytes handled in the current iteration)\nto nSrc (total number of bytes handled) looks like a bugfix,\nsince we don\u0027t want to return ErrShortSrc just because\nwe ran for more than one iteration.\n\nHowever, when atEOF\u003d\u003dfalse, Form.transform never processes\nits complete input (Because quickSpan won\u0027t process *its*\ncomplete input except when at EOF, I believe because it\u0027s\nwaiting to see if any future characters combine with the\ncurrent input suffix.) It always returns ErrShortSrc\nwith or without this change.\n\nDropping !atEOF looks like it would cause us to return\nErrShortSrc when at EOF and not processing all source\ncharacters (which would be correct behavior), but\nForm.transform always processes the complete source when at EOF.\n\nTo summarize: This change is a complete no-op, but the\ncode is simpler, more obviously correct, and more robust\nto future changes elsewhere. (For example, if something\ncauses Form.transform to fail to process the complete source\nwhen at EOF, it will now correctly return ErrShortSrc.)\n\nChange-Id: Id76f3dea328ac8407936adfcfb14b1066a6a6964\nReviewed-on: https://go-review.googlesource.com/c/text/+/794102\nReviewed-by: Neal Patel \u003cnealpatel@google.com\u003e\nReviewed-by: Neal Patel \u003cneal@golang.org\u003e\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nAuto-Submit: Damien Neil \u003cdneil@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a1d366ae48720ac93c9ba27df82e271d3bd37d7f",
      "old_mode": 33188,
      "old_path": "unicode/norm/transform.go",
      "new_id": "0d8e817923340ca705ebbebb4cb93222cea01ca7",
      "new_mode": 33188,
      "new_path": "unicode/norm/transform.go"
    }
  ]
}
