go/src/cmd/fix
Russ Cox 7747c33a41 internal/diff: add, replacing cmd/internal/diff
This is an in-process (non-exec'ing) replacement for cmd/internal/diff.
It uses an O(n log n) algorithm instead of the O(n²) algorithm
in standard diff binaries. It does not produce the absolute
shortest diffs, but the results are often more meaningful
than the standard diff, because it doesn't try to align
random blank lines or other noise.

Adding so that tests inside std (especially go/printer)
can print diffs.

Replacing cmd/internal/diff because we don't need two.

Change-Id: I9155dd925e4a813f5bfa84a8ad3dec8ffdbf8550
Reviewed-on: https://go-review.googlesource.com/c/go/+/384255
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Peter Weinberger <pjw@google.com>
Trust: Peter Weinberger <pjw@google.com>
2022-03-18 16:56:29 +00:00
..
buildtag.go cmd/fix: add buildtag fix 2021-10-28 17:52:59 +00:00
buildtag_test.go cmd/fix: add buildtag fix 2021-10-28 17:52:59 +00:00
cftype.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
cftype_test.go
context.go
context_test.go
doc.go
egltype.go cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go 2020-05-31 09:48:08 +00:00
egltype_test.go cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go 2020-05-31 09:48:08 +00:00
fix.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
gotypes.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
gotypes_test.go
import_test.go
jnitype.go
jnitype_test.go
main.go internal/diff: add, replacing cmd/internal/diff 2022-03-18 16:56:29 +00:00
main_test.go internal/diff: add, replacing cmd/internal/diff 2022-03-18 16:56:29 +00:00
netipv6zone.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
netipv6zone_test.go
printerconfig.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
printerconfig_test.go
typecheck.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00