📄 changelog
字号:
Tue Aug 25 22:13:36 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * patch.c (main, get_some_switches), common.h, inp.c (plan_a, plan_b), pch.c (there_is_another_patch): Add -t --batch option, similar to -f --force.Mon Jul 27 11:27:07 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * common.h: Define SCCSDIFF and RCSDIFF. * inp.c (plan_a): Use them to make sure it's safe to check out the default RCS or SCCS version. From Paul Eggert.Mon Jul 20 14:10:32 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * util.h: Declare basename. * inp.c (plan_a), util.c (fetchname): Use it to isolate the leading path when testing for RCS and SCCS files.Fri Jul 10 16:03:23 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * util.c (makedirs): Only make the directories that don't exist. From chip@tct.com (Chip Salzenberg).Wed Jul 8 01:20:56 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * patch.c (main): Open ofp after checking for ed script. Close ofp and rejfp before trying plan B. From epang@sfu.ca (Eugene Pang). * util.c (fatal, pfatal): Print "patch: " before message. * pch.c, inp.c, patch.c, util.c: Remove "patch: " from the callers that had it. * common.h (myuid): New variable. * patch.c (main): Initialize it. * inp.c (myuid): Function removed. (plan_a): Use the variable, not the function. * patch.c: Add back -E --remove-empty-files option.Tue Jul 7 23:19:28 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * inp.c (myuid): New function. (plan_a): Call it. Optimize stat calls. Be smarter about detecting checked out RCS and SCCS files. From Paul Eggert (eggert@twinsun.com). * inp.c, util.c, patch.c: Don't bother checking for stat() > 0.Mon Jul 6 13:01:52 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * util.c (move_file): Use rename instead of link and copying. * util.c (pfatal): New function. * util.h: Declare it and pfatal[1-4] macros. * various files: Use it instead of fatal where appropriate. * common.h, patch.c: Replace Arg[cv]_last with optind_last. * patch.c (main, get_some_switches): Use getopt_long. Update usage message. (nextarg): Function removed. * Rename FLEXFILENAMES to HAVE_LONG_FILE_NAMES, VOIDSIG to RETSIGTYPE. * backupfile.c, common.h: Use STDC header files if available. backupfile.h: Declare get_version. * COPYING, COPYING.LIB, INSTALL, Makefile.in, alloca.c, config.h.in, configure, configure.in, getopt.[ch], getopt1.c, rename.c: New files. * Configure, MANIFEST, Makefile.SH, config.H, config.h.SH, malloc.c: Files removed. * version.c (version): Don't print the RCS stuff, since we're not updating it regularly. * patchlevel.h: PATCHLEVEL 12u7. * Makefile.SH (dist): New target. Makedist: File removed. * inp.c (plan_a): Check whether the user can write to the file, not whether anyone can write to the file.Sat Jul 4 00:06:58 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * inp.c (plan_a): Try to check out read-only files from RCS or SCCS. * util.c (move_file): If backing up by linking fails, try copying. From cek@sdc.boeing.com (Conrad Kimball). * patch.c (get_some_switches): Eliminate -E option; always remove empty output files. * util.c (fetchname): Only undo slash removal for relative paths if -p was not given. * Makefile.sh: Add mostlyclean target.Fri Jul 3 23:48:14 1992 David J. MacKenzie (djm@nutrimat.gnu.ai.mit.edu) * util.c (fetchname): Accept whitespace between `Index:' and filename. Also plug a small memory leak for diffs against /dev/null. From eggert@twinsun.com (Paul Eggert). * common.h: Don't define TRUE and FALSE if already defined. From phk@data.fls.dk (Poul-Henning Kamp).Wed Apr 29 10:19:33 1992 David J. MacKenzie (djm@churchy.gnu.ai.mit.edu) * backupfile.c (get_version): Exit if given a bad backup type.Fri Mar 27 09:57:14 1992 Karl Berry (karl at hayley) * common.h (S_ISDIR, S_ISREG): define these. * inp.c (plan_a): use S_ISREG, not S_IFREG. * util.c (fetchname): use S_ISDIR, not S_IFDIR.Mon Mar 16 14:10:42 1992 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu) * patchlevel.h: PATCHLEVEL 12u6.Sat Mar 14 13:13:29 1992 David J. MacKenzie (djm at frob.eng.umd.edu) * Configure, config.h.SH: Check for directory header and unistd.h. * patch.c (main): If -E was given and output file is empty after patching, remove it. (get_some_switches): Recognize -E option. * patch.c (copy_till): Make garbled output an error, not a warning that doesn't change the exit status. * common.h: Protect against system declarations of malloc and realloc. * Makedist: Add backupfile.[ch]. * Configure: Look for C library where NeXT and SVR4 put it. Look in /usr/ucb after /bin and /usr/bin for utilities, and look in /usr/ccs/bin, to make SVR4 happier. Recognize m68k predefine. * util.c (fetchname): Test of stat return value was backward. From csss@scheme.cs.ubc.ca. * version.c (version): Exit with status 0, not 1. * Makefile.SH: Add backupfile.[cho]. * patch.c (main): Initialize backup file generation. (get_some_switches): Add -V option. * common.h, util,c, patch.c: Replace origext with simple_backup_suffix. * util.c (move_file): Use find_backup_file_name.Tue Dec 3 11:27:16 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) * patchlevel.h: PATCHLEVEL 12u5. * Makefile.SH: Change clean, distclean, and realclean targets a little so they agree with the GNU coding standards. Add Makefile to addedbyconf, so distclean removes it. * Configure: Recognize Domain/OS C library in /lib/libc. From mmuegel@mot.com (Michael S. Muegel). * pch.c: Fixes from Wayne Davison: Patch now accepts no-context context diffs that are specified with an assumed one line hunk (e.g. "*** 10 ****"). Fixed a bug in both context and unified diff processing that would put a zero-context hunk in the wrong place (one line too soon). Fixed a minor problem with p_max in unified diffs where it would set p_max to hunkmax unnecessarily (the only adverse effect was to not supply empty lines at eof by assuming they were truncated).Tue Jul 2 03:25:51 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) * Configure: Check for signal declaration in /usr/include/sys/signal.h as well as /usr/include/signal.h. * Configure, common.h, config.h.SH: Comment out the sprintf declaration and tests to determine its return value type. It conflicts with ANSI C systems' prototypes in stdio.h and the return value of sprintf is never used anyway -- it's always cast to void.Thu Jun 27 13:05:32 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu) * patchlevel.h: PATCHLEVEL 12u4.Thu Feb 21 15:18:14 1991 David J. MacKenzie (djm at geech.ai.mit.edu) * pch.c (another_hunk): Fix off by 1 error. From iverson@xstor.com (Tim Iverson).Sun Jan 20 20:18:58 1991 David J. MacKenzie (djm at geech.ai.mit.edu) * Makefile.SH (all): Don't make a dummy `all' file. * patchlevel.h: PATCHLEVEL 12u3. * patch.c (nextarg): New function. (get_some_switches): Use it, to prevent dereferencing a null pointer if an option that takes an arg is not given one (is last on the command line). From Paul Eggert. * pch.c (another_hunk): Fix from Wayne Davison to recognize single-line hunks in unified diffs (with a single line number instead of a range). * inp.c (rev_in_string): Don't use `s' before defining it. From Wayne Davison.Mon Jan 7 06:25:11 1991 David J. MacKenzie (djm at geech.ai.mit.edu) * patchlevel.h: PATCHLEVEL 12u2. * pch.c (intuit_diff_type): Recognize `+++' in diff headers, for unified diff format. From unidiff patch 1.Mon Dec 3 00:14:25 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * patch.c (get_some_switches): Make the usage message more informative.Sun Dec 2 23:20:18 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * Configure: When checking for C preprocessor, look for 'abc.*xyz' instead of 'abc.xyz', so ANSI C preprocessors work. * Apply fix for -D from ksb@mentor.cc.purdue.edu (Kevin Braunsdorf).1990-05-01 Wayne Davison <davison@dri.com> * patch.c, pch.c: unidiff support addedWed Mar 7 23:47:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu) * pch.c: Call malformed instead of goto malformed (just allows easier debugging).Tue Jan 23 21:27:00 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu) * common.h (TMP*NAME): Make these char *, not char []. patch.c (main): Use TMPDIR (if present) to set TMP*NAME. common.h: Declare getenv.Sun Dec 17 17:29:48 1989 Jim Kingdon (kingdon at hobbes.ai.mit.edu) * patch.c (reverse_flag_specified): New variable. (get_some_switches, reinitialize_almost_everything): Use it.1988-06-22 Larry Wall <sdcrdcf!lwall> patch12: * common.h: sprintf was declared wrong * patch.c: rindex() wasn't declared * patch.man: now avoids Bell System Logo1988-06-03 Larry Wall <sdcrdcf!lwall> patch10: * common.h: support for shorter extensions. * inp.c: made a little smarter about sccs files * patch.c: exit code improved. better support for non-flexfilenames. * patch.man: -B switch was contributed. * pch.c: Can now find patches in shar scripts. Hunks that swapped and then swapped back could core dump.1987-06-04 Larry Wall <sdcrdcf!lwall> * pch.c: pch_swap didn't swap p_bfake and p_efake.1987-02-16 Larry Wall <sdcrdcf!lwall> * patch.c: Short replacement caused spurious "Out of sync" message.1987-01-30 Larry Wall <sdcrdcf!lwall> * patch.c: Improved diagnostic on sync error. Moved do_ed_script() to pch.c. * pch.c: Improved responses to mangled patches. * pch.h: Added do_ed_script().1987-01-05 Larry Wall <sdcrdcf!lwall> * pch.c: New-style context diffs caused double call to free().1986-11-21 Larry Wall <sdcrdcf!lwall> * patch.c: Fuzz factor caused offset of installed lines.1986-11-14 Larry Wall <sdcrdcf!lwall> * pch.c: Fixed problem where a long pattern wouldn't grow the hunk. Also restored p_input_line when backtracking so error messages are right.1986-11-03 Larry Wall <sdcrdcf!lwall> * pch.c: New-style delete triggers spurious assertion error.1986-10-29 Larry Wall <sdcrdcf!lwall> * patch.c: Backwards search could terminate prematurely. * pch.c: Could falsely report new-style context diff.1986-09-17 Larry Wall <sdcrdcf!lwall> * common.h, inp.c, inp.h, patch.c, patch.man, pch.c, pch.h, util.h, version.c, version.h: Baseline for netwide release.1986-08-01 Larry Wall <sdcrdcf!lwall> * patch.c: Fixes for machines that can't vararg. Added fuzz factor. Generalized -p. General cleanup. Changed some %d's to %ld's. Linted. * patch.man: Documented -v, -p, -F. Added notes to patch senders.1985-08-15 van%ucbmonet@berkeley Changes for 4.3bsd diff -c.1985-03-26 Larry Wall <sdcrdcf!lwall> * patch.c: Frozen. * patch.man: Frozen.1985-03-12 Larry Wall <sdcrdcf!lwall> * patch.c: Now checks for normalness of file to patch. Check i_ptr and i_womp to make sure they aren't null before freeing. Also allow ed output to be suppressed. Changed pfp->_file to fileno(pfp). Added -p option from jromine@uci-750a. Added -D (#ifdef) option from joe@fluke. * patch.man: Documented -p, -D.1984-12-06 Larry Wall <sdcrdcf!lwall> * patch.c: Made smarter about SCCS subdirectories.1984-12-05 Larry Wall <sdcrdcf!lwall> * patch.c: Added -l switch to do loose string comparison. * patch.man: Added -l switch, and noted bistability bug.1984-12-04 Larry Wall <sdcrdcf!lwall> Branch for sdcrdcf changes. * patch.c: Failed hunk count
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -