aboutsummaryrefslogtreecommitdiff
path: root/toys/patch.c
AgeCommit message (Collapse)Author
2012-02-26Teach patch -p that consecutive /// counts as one path component.Rob Landley
2012-01-22Patch shouldn't be bothered by DOS newlines.Rob Landley
2011-11-22Don't complain about "possibly reversed" hunks that merely moved later in ↵Rob Landley
the file, just give a potential reason if it failed to apply.
2011-05-21The @@ -1,2 +3,4 @@ lines treat ,1 as implied, so the format isn't regular.Rob Landley
(Yes, this was designed by the FSF, what gave it away?)
2010-02-28For CFG_TOYBOX_DEBUG add -x option to patch to dump lots of debug output ↵Rob Landley
about the search and match.
2010-02-28One more little tweak to patch: unrecognized date format != delete file.Rob Landley
2009-11-29Fix reversed patch detection logic, remove unused variables, rename ↵Rob Landley
variables, better comments.
2009-03-29Another patch corner case.0.0.9.1Rob Landley
2009-03-28Rearchitect patch to handle more darn corner cases.Rob Landley
2009-01-04Make patch work with -R when deleting files.Rob Landley
2008-12-16Two bugfixes for deleting files (-p and message)Rob Landley
2008-11-18The epoch can also show up as 1970-01-01 (depending on timezone), so treat ↵Rob Landley
any year >0 and <= 1970 as meaning "file does not exist".
2008-10-23Upgrade patch to detect hunks that start after a false start.Rob Landley
Imagine a hunk that starts with a blank line, but the site to patch starts with two blank lines. Before we'd read the first blank line, think it was the start of the hunk and buffer it, read the second blank line, notice that it didn't match the second line of the hunk, and discard _both_ buffered lines of context (writing them to the output file) without checking that one of the later context lines might have been the real start of the hunk. Make it re-check the rest of the buffered context for matches each time it discards a line of buffered context.
2008-04-08Teach patch that a file dated 1969-12-31 means doesn't exist, and to failRob Landley
if a create isn't exclusive.
2008-01-20Move dlist_add() to lib/llist.cRob Landley
2008-01-20Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()Rob Landley
macros in each C file, and making generated/globals.h from that. Rename "toy" to "this" along the way to avoid toy/toys confusion.
2008-01-19Move NEWTOY() list from end of toylist.h to generated/newtoys.h.Rob Landley
2008-01-19Zap toys/Config.in and instead create generated/Config.in from contents ofRob Landley
toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
2007-12-31Fix patch to use @@ values and match EOF when fewer trailing than startingRob Landley
context lines.
2007-12-27Make patch's file add actually work, including directory creating andRob Landley
understanding zero-context hunks.
2007-12-20Upgrade patch to understand creating and deleting files.Rob Landley
2007-12-18Patch command.Rob Landley