Projects / patch

patch

patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions. Normally the patched versions are put in place of the originals. Backups can be made.

Tags
Licenses

Recent releases

  •  07 Oct 2012 12:26

    Release Notes: Support has been added for diff3-style merges and for most features of the "diff --git" format, including renames and copies, permission changes, and symlink diffs, but not including binary diffs. Filenames can now be double-quoted as C string literals. Normal patches are no longer applied to symlinks (this behavior can be reverted with the new "--follow-symlinks" option). Timestamps with timezones are now honored correctly. Messages have been improved. Behavior and handling in several scenarios has been improved. Various minor bugs have been fixed.

    •  20 Nov 2009 00:49

      Release Notes: The "check" makefile target was added. The --merge option was added. Reject files now can be used as regular patches. The original version of a file that is patched more than once is backed up, and at most only one reject file is made. The -r option now works correctly. Rejected hunks come out in unified diff format if the input patch was of that format. Various bugs were fixed.

      •  22 Jul 2001 20:12

        No changes have been submitted for this release.

        Recent comments

        06 Feb 2002 04:26 mamfelt

        patch 2.5.4 doesnt compile with native IBM C compiler
        While compiling util.c AIX C compiler complains about a syntax problem:
        (./configure was run without any extra arguments before running make)

        cc -c -DHAVE_CONFIG_H -Ded_PROGRAM=\"/usr/bin/ed\" -I. -I. -g util.c
        "util.c", line 489.1: 1506-343 (S) Redeclaration of fatal differs from previous declaration on line 15 of "./util.h".
        "util.c", line 489.1: 1506-378 (I) Prototype for function fatal cannot contain "..." when mixed with a nonprototype declaration.
        "util.c", line 493.3: 1506-045 (S) Undeclared identifier va_alist.
        "util.c", line 522.1: 1506-343 (S) Redeclaration of pfatal differs from previous declaration on line 17 of "./util.h".
        "util.c", line 522.1: 1506-378 (I) Prototype for function pfatal cannot contain "..." when mixed with a nonprototype declaration.
        "util.c", line 527.3: 1506-045 (S) Undeclared identifier va_alist.
        "util.c", line 540.1: 1506-343 (S) Redeclaration of say differs from previous declaration on line 13 of "./util.h".
        "util.c", line 540.1: 1506-378 (I) Prototype for function say cannot contain "..." when mixed with a nonprototype declaration.
        "util.c", line 543.3: 1506-045 (S) Undeclared identifier va_alist.
        "util.c", line 552.1: 1506-343 (S) Redeclaration of ask differs from previous declaration on line 12 of "./util.h".
        "util.c", line 552.1: 1506-378 (I) Prototype for function ask cannot contain "..." when mixed with a nonprototype declaration.
        "util.c", line 558.3: 1506-045 (S) Undeclared identifier va_alist.
        "util.c", line 611.1: 1506-343 (S) Redeclaration of ok_to_reverse differs from previous declaration on line 11 of "./util.h".
        "util.c", line 611.1: 1506-378 (I) Prototype for function ok_to_reverse cannot contain "..." when mixed with a nonprototype declaration.
        "util.c", line 618.7: 1506-045 (S) Undeclared identifier va_alist.
        make: 1254-004 The error code from the last command is 1.

        Screenshot

        Project Spotlight

        OpenStack4j

        A Fluent OpenStack client API for Java.

        Screenshot

        Project Spotlight

        TurnKey TWiki Appliance

        A TWiki appliance that is easy to use and lightweight.