Apply a diff file to an original

Current versions

gpatch requires the following formula to be installed:
xz 5.2.3 General-purpose data compression with high compression ratio

Recent formula history

ilovezfs Use “squiggly” heredocs.
ilovezfs gpatch: swap GNU url and mirror.
Mike McQuaid gpatch: import homebrew/dupes into core.

Formula code at GitHub