)]}'
{
  "commit": "77ae86f624cb174e21763cffcbbf070eb06cb016",
  "tree": "dd32bd59eb58b50d44dee2efa06ac36f8daa92a1",
  "parents": [
    "c49bfce0ac9115b09320b47c3b9534cc5afd4579"
  ],
  "author": {
    "name": "Joe Tsai",
    "email": "joetsai@digital-static.net",
    "time": "Wed Jun 17 17:25:47 2020 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Wed Jun 17 17:25:47 2020 -0700"
  },
  "message": "Improve reporting of values with cycles (#217)\n\nPreviously, the reporter could handle formatting values with cycles\r\nin that it did not crash with a stack overflow. However, the output\r\nwas not particularly understandable as it did not surface to the user\r\nwhy a particular value was truncated, and if it was truncated due\r\nto a cyclic reference, what was the referent.\r\n\r\nThis change annotates the reporter tree with pointer information\r\nso that a later pass can inject reference information if it is needed\r\nto produce more understandable output.\r\n\r\nConsider the following example:\r\n  map[string]*cmp_test.CycleAlpha{\r\n  \t\"Foo\": \u0026⟪ref#0⟫{\r\n  \t\tName: \"Foo\",\r\n  \t\tBravos: map[string]*cmp_test.CycleBravo{\r\n  \t\t\t\"FooBravo\": \u0026{\r\n- \t\t\t\tID:     101,\r\n+ \t\t\t\tID:     0,\r\n  \t\t\t\tName:   \"FooBravo\",\r\n  \t\t\t\tMods:   100,\r\n  \t\t\t\tAlphas: {\"Foo\": \u0026⟪ref#0⟫(...)},\r\n  \t\t\t},\r\n  \t\t},\r\n  \t},\r\n  }\r\n\r\nThis graph contains a cycle. To ensure that a graph can be formatted,\r\nthe cycle is truncated as indicated with: \u0026⟪ref#0⟫(...).\r\nThe referent was identified earlier with: \u0026⟪ref#0⟫{...}.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0a01c4796f14df274397092586441c80060e704b",
      "old_mode": 33188,
      "old_path": "cmp/internal/value/pointer_purego.go",
      "new_id": "e9e384a1c89d4990b1e11f7fbe741c28f8d15e8d",
      "new_mode": 33188,
      "new_path": "cmp/internal/value/pointer_purego.go"
    },
    {
      "type": "modify",
      "old_id": "da134ae2a80f31a09ed497389cdff06005dc142e",
      "old_mode": 33188,
      "old_path": "cmp/internal/value/pointer_unsafe.go",
      "new_id": "b50c17ec725ae119035f4f43ce32d6cfd217ca90",
      "new_mode": 33188,
      "new_path": "cmp/internal/value/pointer_unsafe.go"
    },
    {
      "type": "modify",
      "old_id": "6ddf29993e5287c909553bdedf3d1d63d4ce9922",
      "old_mode": 33188,
      "old_path": "cmp/report.go",
      "new_id": "aafcb36354511b03b1ad521709eccdf09132dcd6",
      "new_mode": 33188,
      "new_path": "cmp/report.go"
    },
    {
      "type": "modify",
      "old_id": "be03a25f999f492211c58117ba5b73d790a19bc4",
      "old_mode": 33188,
      "old_path": "cmp/report_compare.go",
      "new_id": "9e2180964f1bd5bdf16fda5739a364d23e6e7888",
      "new_mode": 33188,
      "new_path": "cmp/report_compare.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d620c2c20e7f7cc0a224077ab9d0ca8dab2717d7",
      "new_mode": 33188,
      "new_path": "cmp/report_references.go"
    },
    {
      "type": "modify",
      "old_id": "8b4325d0948a9c682cd2acfb427bc4b26f00d064",
      "old_mode": 33188,
      "old_path": "cmp/report_reflect.go",
      "new_id": "2d722ea51dc0dcdb096c410d740aae7276eaff32",
      "new_mode": 33188,
      "new_path": "cmp/report_reflect.go"
    },
    {
      "type": "modify",
      "old_id": "49fc5ec81b48a55e79a8ad86d82d2ba5266ff84d",
      "old_mode": 33188,
      "old_path": "cmp/report_slices.go",
      "new_id": "35315dad35520642e5e1f45d22f182c1e8f1c83d",
      "new_mode": 33188,
      "new_path": "cmp/report_slices.go"
    },
    {
      "type": "modify",
      "old_id": "b8ec9d2b0ee4e522b16c8ddc531f4be03cc30d75",
      "old_mode": 33188,
      "old_path": "cmp/report_text.go",
      "new_id": "8b12c05cd4f3b21eafe6e3d3907359f1fc0f3b85",
      "new_mode": 33188,
      "new_path": "cmp/report_text.go"
    },
    {
      "type": "modify",
      "old_id": "baec97da61265d8a6718238eb4e717ce9dca63cc",
      "old_mode": 33188,
      "old_path": "cmp/testdata/diffs",
      "new_id": "949e8d1aec661af64de1ab84843df3fe7d309ca1",
      "new_mode": 33188,
      "new_path": "cmp/testdata/diffs"
    }
  ]
}
