gpatch
« Back to VersTracker
Description:
Apply a diff file to an original
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: patch diff gnu version-control developer-tool
Install: brew install gpatch
About:
Gpatch is the GNU version of the standard Unix patch utility. It intelligently applies diff files to source code, enabling developers to update files by modifying only the changed lines. This tool is essential for integrating contributions and managing source code versions efficiently.
Key Features:
  • Applies unified and context diffs
  • Automatically reverses patches
  • Fuzz factor for imperfect matches
  • Backup original files before patching
Use Cases:
  • Applying open-source software updates or security fixes
  • Sharing code modifications between developers
Alternatives:
  • git apply – Git's built-in tool is faster for repository-managed files but Gpatch handles raw diff files more generically.
Version History
Detected Version Rev Change Commit
Oct 22, 2024 3:34pm 0 VERSION_BUMP ed29f1aa