All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- (#150)
--skip-generated
flag to skip running on files containing generated code.
- (#112)
--skip-import-processing
flag to skip import processing.
- (#64)
--diff
flag reports a diff of the changes that would be made, but does not make them. - (#70)
--print-only
prints the modified contents of all matched files to stdout in their entirety without modifying files on disk. - (#77)
-P
/--patches-file
reads a list of patch files from another file on-disk.
- (#54) Preserve top-level comments in files when updating imports.
- Parse generics syntax introduced in Go 1.18.
Thanks to @breml for their contribution to this release.
Starting this release, we will include pre-built binaries of gopatch for different systems.
- (#7): Add support for verbose logging with a
-v
flag. - Add introductory documentation and patch guide.
- Only the
--version
flag now prints the version number. The-v
is used for verbose logging instead.
- (#2): Patches with named imports now support matching and manipulating any import.
- Fix issue where rewrites of unnamed imports would end up with duplicate entries.
- Fixed unintended deletion of unchanged named imports.
- Initial alpha release.