)]}'
{
  "commit": "b341c9ad2b936cbf166fa3840d29955795a57cc2",
  "tree": "c69727481e295701843cbbcecc4ab316440f03c3",
  "parents": [
    "99f9958aa4f0dfa39d852b00dc3076255dbbb1e1"
  ],
  "author": {
    "name": "Alan Donovan",
    "email": "adonovan@google.com",
    "time": "Fri Oct 02 11:20:07 2026 -0400"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Tue Oct 20 07:34:00 2026 -0700"
  },
  "message": "internal/analysis/analyzerutil: distinguish unknown file versions\n\n(Second attempt at CL 840566, reverted in CL 841445 because it\nwas submitted out of order,  breaking tests.)\n\nFileUsesGoVersion conflated \"unknown\" with \"before\", which is the\nconservative answer for most callers, but not for loopclosure, which\nwants to know whether a file is definitely before go1.22.\nAlso, it treated a missing FileVersions entry as \"before\" but an empty\nentry as an unknown future version (\"after\").\n\nAdd FileGoVersion, which returns the effective version of a file and\nreports whether it is known (valid). FileUsesGoVersion is now\nexpressed in terms of it, and treats both kinds of unknown as false.\n\nloopclosure now uses FileGoVersion and skips files whose version is\nunknown, to avoid false positives.\n\nChange-Id: If9dcc568882b79f2fffa6237d256b248ef98fdba\nReviewed-on: https://go-review.googlesource.com/c/tools/+/843565\nLUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\nReviewed-by: Alex Putman \u003caputman@golang.org\u003e\nAuto-Submit: Alan Donovan \u003cadonovan@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "41b19d7933e47fafe35f5923992e20ebcc3044ad",
      "old_mode": 33188,
      "old_path": "go/analysis/passes/loopclosure/loopclosure.go",
      "new_id": "3cf1692a881880528ef57b8f33bfeab46bd8216a",
      "new_mode": 33188,
      "new_path": "go/analysis/passes/loopclosure/loopclosure.go"
    },
    {
      "type": "modify",
      "old_id": "60d7253c0e5dc3c08164bc29fb5a9bc02ad98be3",
      "old_mode": 33188,
      "old_path": "internal/analysis/analyzerutil/version.go",
      "new_id": "b6aa1bd21aab4250bc40f798237ad0f5457a799c",
      "new_mode": 33188,
      "new_path": "internal/analysis/analyzerutil/version.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "12468364845605f05444342c537e6507bb5f11b3",
      "new_mode": 33188,
      "new_path": "internal/analysis/analyzerutil/version_test.go"
    }
  ]
}
