)]}' { "commit": "b1730b6f8bf3f3c82dc4b2d83141e9b051a89b98", "tree": "81dfcf66099e41ecfb6f1de9ae1f4924fd4c39e7", "parents": [ "f9164c6f45f7bfb51992b9b24513c7946299d5ae" ], "author": { "name": "Marcel van Lohuizen", "email": "mpvl@golang.org", "time": "Tue Mar 30 08:41:23 2021 +0200" }, "committer": { "name": "Marcel van Lohuizen", "email": "mpvl@golang.org", "time": "Tue Mar 30 13:07:32 2021 +0000" }, "message": "tools/trim: optional fields should not remove non-optional\n\nThe solution is rather brute-force, we need to find something\nmore fine-grained eventually. But for now this avoids an\nerroneous removal.\n\nFixing this will be easier when optional fields are represented\nas normal fields with an optional flag, as they were in v0.2.\n\nFixes #855\n\nChange-Id: I65829858b1856fcd09aa121f1e1c53fd49864c87\nReviewed-on: https://cue-review.googlesource.com/c/cue/+/9221\nReviewed-by: CUE cueckoo \u003ccueckoo@gmail.com\u003e\nReviewed-by: Marcel van Lohuizen \u003cmpvl@golang.org\u003e\n", "tree_diff": [ { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "160b9ae7a963e756b3834c3b1a09e48efdeb7341", "new_mode": 33188, "new_path": "tools/trim/testdata/optional.txtar" }, { "type": "modify", "old_id": "5b202959fe9be936a7da8af4143b24151ebc7793", "old_mode": 33188, "old_path": "tools/trim/trim.go", "new_id": "01996898c35eba13143b15d470c91c2f73915523", "new_mode": 33188, "new_path": "tools/trim/trim.go" } ] }