)]}'
{
  "commit": "fd64c67179137a04ddbf5c1a02292bae48b0dcab",
  "tree": "0af1427490573460578d5da26074d9d43c33db4d",
  "parents": [
    "6efda21b63ec034e0e390b7002e7266274fa30ac"
  ],
  "author": {
    "name": "Steve Jason",
    "email": "145211128+56steve@users.noreply.github.com",
    "time": "Wed Nov 18 16:42:37 2026 +0530"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Nov 18 12:12:37 2026 +0100"
  },
  "message": "Keep the exponent digit when formatting floats with a zero exponent (#1543)\n\nThe float rewrite strips leading zeros and plus signs from the exponent,\nso a float whose exponent is zero loses it entirely: `x \u003d 1.5e0`,\n`1.5e+0` and `1.0E00` are written back as `1.5e` and `1.0e`, which is no\nlonger valid Starlark.\n\nI keep a single `0` when the exponent has digits but all of them are\nzeros. A float with no exponent digits at all (`1.5e`) was already\ninvalid, and is now left as written instead of being rewritten.\n\nThe new cases in `build/testdata/003` cover `1.5e0`, `1.5e+0`, `1.0E00`\nand `.5e+000`. I also compared the old and new output over a few hundred\ncombinations of mantissa, `e`/`E`, sign and exponent: only zero\nexponents and the digitless ones changed.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "792480137fa4c3eb836621c29f0d6a8c6650219f",
      "old_mode": 33188,
      "old_path": "build/rewrite.go",
      "new_id": "5aa47bf3b4f6a3d34a1961ca9f49a3562a9938db",
      "new_mode": 33188,
      "new_path": "build/rewrite.go"
    },
    {
      "type": "modify",
      "old_id": "7a120c1427167db650f97f0377b75dc1a79d2ae2",
      "old_mode": 33188,
      "old_path": "build/testdata/003.golden",
      "new_id": "e0dc8ace2a42e3989dde518f19f55467ed41484a",
      "new_mode": 33188,
      "new_path": "build/testdata/003.golden"
    },
    {
      "type": "modify",
      "old_id": "19915c3fdbcb28eea67f3e1b09519eb672a7131d",
      "old_mode": 33188,
      "old_path": "build/testdata/003.in",
      "new_id": "7ba6cc7509aa8f76ff67594617648ed7ae2e297d",
      "new_mode": 33188,
      "new_path": "build/testdata/003.in"
    }
  ]
}
