gpatch

Install command:
brew install gpatch

Apply a diff file to an original

https://savannah.gnu.org/projects/patch/

License: GPL-3.0-or-later

Formula JSON API: /api/formula/gpatch.json

Formula code: gpatch.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 2.8
GNU "patch" has been installed as "gpatch".
If you need to use it as "patch", you can add a "gnubin" directory
to your PATH from your bashrc like:

     PATH="$HOMEBREW_PREFIX/opt/gpatch/libexec/gnubin:$PATH"

Analytics:

Installs (30 days)
gpatch 2,157
gpatch --HEAD 3
Installs on Request (30 days)
gpatch 753
gpatch --HEAD 3
Build Errors (30 days)
gpatch 0
Installs (90 days)
gpatch 6,908
gpatch --HEAD 5
Installs on Request (90 days)
gpatch 2,220
gpatch --HEAD 5
Installs (365 days)
gpatch 18,290
gpatch --HEAD 9
Installs on Request (365 days)
gpatch 4,684
gpatch --HEAD 9
Fork me on GitHub